[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: 2 Instances of Quotetracker with AB?



PureBytes Links

Trading Reference Links

Hello,

I understand what you mean but in Microsoft's OLE mechanism
(when declaring class factory) you have the choice to allow or not to
allow multiple instantiation. There is no "third" option.
For this reason, implementing your idea would also force the creation of new instance 
via each call to CreateObject and this would break many existing applications 
and formulas relaying on  current CreateObject behaviour 
(including AmiQuote, PowerScan and all other scripts using AB object).

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "groups" <groups@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, November 24, 2004 10:59 PM
Subject: Re: [amibroker] Re: 2 Instances of Quotetracker with AB?


> 
> Tomasz Janeczko wrote:
>> Second question is actually completely unrelated to original QuoteTracker question
>> but somehow people tend to mix different things.
> 
> yes, I know.. but I would like to ask if there would be possibility to 
> implement multi-referal structure using a little tricky solution. I mean 
> additional built-in function (let's call it NewInstance) which would be 
> accessible via automation and which would return another, independent 
> instance of AmiBroker (like some WSH functions create separate program 
> instances as opposed to creating "child" instances). then I imagine some 
> scripts could be written like:
> 
> oAB  = new ActiveXObject("Broker.Application");
> oAB1 = oAB.NewInstance();
> 
> I am not programmer but I am pretty sure you get the idea what I mean.. 
> Would this solution require modifications mentioned in the previous post?
> 
> cheers,
> BM
> 
> 
> 
> Check AmiBroker web page at:
> http://www.amibroker.com/
> 
> Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/