I am evaluating an Active-X component that I found on the web that was
originally compiled and tested for VB. I have tried importing it into Delphi
(registering it and creating type libraries) but can't seem to use it. The
registration does not produce a component (the properties must not be
registered as visible when the ocx was compiled) so I'm trying to create an
instance in code. Whenever I try and create an instance, I get an
EOleSysError $800A0034 (which is not one of the standard errors). This is
the call I'm using:

  myinterface := CreateComObject(CLASS_GPSActiveXControl);

Is this something I'm doing wrong or have they compiled their ocx
incorrectly?

I tried registering it with the command line tlibimp to force it to create a
component and not ignore invisible properties. This created a component but
I still get the same errors. Is there a particular combination of flags I
need to use here?

thanks for any help.

Phil Middlemiss.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to