Board index » cppbuilder » activeX from dll

activeX from dll


2005-09-01 01:03:16 AM
cppbuilder102
Hi
I would like to use an ActiveX component embedded in a dll, there's no
.ocx since it's not a visual component as far as i know : how can i
access this component in BCB6?
Thanks
David Chze
CLIPSOL
aix-les-bains / france
 
 

Re:activeX from dll

"David chze" < XXXX@XXXXX.COM >wrote in message
Quote
I would like to use an ActiveX component embedded in a dll
Ok so far.
Quote
there's no .ocx since it's not a visual component as far as i know
An OCX is not required.
Quote
how can i access this component in BCB6?
The same way you access any other dll-based COM object - register the DLL
via the REGSVR32.EXE utility and then use the CoCreateInstance() function to
instantiate the desired class. In order to actually use the object instance
at runtime, you will have to know the class declaration for the interface.
If the DLL has a TypeLibrary available then you can create C++ header files
for it via Borland's TLIBIMP.EXE utility.
Gambit