PureBytes Links
Trading Reference Links
|
Hi Tomasz,
Can you help me with the code for the below.
Type objClassType; >> > objClassType = Type.GetTypeFromProgID >> > ("Broker.Application"); >> > application =
Activator.CreateInstance(objClassType);
I have this. Now how can I update amibroker with the quotes in C#.
I have found this script. I am trying to do similar thing with my C# client.
Thanks.
AmiBroker = new ActiveXObject( "Broker.Application
" ); fso = new ActiveXObject( "Scripting.FileSystemObject" ); f = fso.OpenTextFile( filename, ForReading); f.SkipLine(); while ( !f.AtEndOfStream ) { r = f.ReadLine();
/* split the lines using comma as a separator */ fields = r.split(","); /* add a ticker - this is safe operation, in case that */ /* ticker already exists, AmiBroker returns existing one */
stock = AmiBroker.Stocks.Add( fields[ 0 ] ); ---------------------------- Hello,
You can't. It involves not exe names but GUIDs stored in the registry. This is the way how Microsoft designed OLE (exe automation servers).
Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: "tiedemj" <[EMAIL PROTECTED]> To: <
amibroker@xxxxxxxxxxxxxxx> Sent: Tuesday, January 16, 2007 4:04 PM Subject: [amibroker] Re: Multiple Broker.Application instances with multiple CPU machines
> OK - Thanks... However, could I rename the modules somewhere, and
> have a broker1.exe and broker2.exe. Realize I just can't rename the > exe files, but some registration in the registry would need to take > place... Or should I just leave it and wait for the multiple CPU
> version? :-) > > Jens > > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <[EMAIL PROTECTED]> > wrote: >>
>> Hello, >> >> No, by default all .EXE OLE/COM servers use always first running > instance, >> and you can not change it. >> >> Best regards, >> Tomasz Janeczko
>> amibroker.com >> ----- Original Message ----- >> From: "tiedemj" <[EMAIL PROTECTED]> >> To: <
amibroker@xxxxxxxxxxxxxxx> >> Sent: Monday, January 15, 2007 10:01 PM >> Subject: [amibroker] Multiple Broker.Application instances with > multiple CPU machines >> >>
>> > Hi, >> > When using the >> > Type objClassType; >> > objClassType = Type.GetTypeFromProgID >> > ("Broker.Application"); >> > application =
Activator.CreateInstance(objClassType); >> > >> > interface to access AmiBroker functionality from C# multiple > times, it >> > seems I only get access to one running instance. Is there a way
> to >> > have more running instances of "broker.exe" - and reference each >> > individually from code? This would allow full exploitation of > multple >> > CPU machines. I have no problem of starting the amibroker
> application >> > normally - and run two optimizations manually..... >> > >> > Any help appreciated.. tx >> > >> > Jens >> > >> >
>> > >> > >> > Please note that this group is for discussion between users only.
-- Umesh
If you are an eagle, don't waste time with chickens.....chickens cannot FLY.
umuntu ngumuntu ngabantu
"Take no pride in facts memorized, but in ideas grasped."—Chris Crawford
visit http://rupeemanager.blogspot.com
__._,_.___
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
__,_._,___
|