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

[amibroker] Re: Automation Interface - can't open



PureBytes Links

Trading Reference Links

Hello Tomasz-

Note: This is second reply - I don't think my first reply got sent,
but if so, excuse the duplication.

I'm running Win XP Home Edition; I verified that my user account is
(and has been) set as administrator (not limited).  Using the OLE/COM
Object Viewer utility, I can see that "Broker.Application" and
"Broker.Workspace" are registered, but not properly, as they cannot be
instantiated to view the interfaces, as can other COM objects.  They
are not recognized by WSH, VB or Python either.

Using Object Viewer, I see that "LocalServer" is identified as
"broker.exe" (makes sense), but InProc server is "StocksToPhone.dll".    
Is this right?.

Hopefully you will have some suggestions as to how to track down why
"Broker.Application" is not registering properly -- others replying to
my inquiry can run the below code snippit without problems.  Would it
be worth completely reinstalling AB?

Regards-
Bob C.


--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
wrote:
> Hello,
> 
> If you get "ClassFactory cannot supply requested class"
> it means that OLE server is not registered properly.
> AmiBroker registers its OLE server automatically on
> startup but you have to have administrative privileges
> because Windows XP/NT/2K does not allow ordinary
> users to register OLE servers.
> 
> Therefore you have to run AmiBroker at least once
> from account that has administrative rights.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "robby4c" <rcole@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, April 25, 2003 5:29 AM
> Subject: [amibroker] Re: Automation Interface - can't open
> 
> 
> > Hi Dingo-
> > Here is the code that demonstrates (for me) the problem:
> > 
> > -------------------
> > //test.js
> > 
> > // The following works as expected--
> > var xl = new ActiveXObject("Excel.Application");
> > xl.visible = 1;
> > xl.Workbooks.Add();  // Excel displayed
> > 
> > // The following gives error: "ClassFactory cannot supply requested
> > // class"
> > var AB = new ActiveXObject("Broker.Application");
> > 
> > // This works ok--
> > //var fso = new ActiveXObject("Scripting.FileSystemObject")
> > 
> > // This gives the same error:
> > //var oAB = WScript.CreateObject("Broker.Application");
> > ------------------------
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:
> > > Why don't you take a very simple version of your program (just
create an
> > > object and then close/release it) and send it to either William,
UM or
> > > myself and let us try it on our setups?
> > >  
> > > If it works on our machines then the problem is on your end and you
> > > might want to contact TJ directly (send him the code at that
point as
> > > well).
> > >  
> > > d



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/AG3JAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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