
Using VB ActiveX DLL in raw C++??
Use the #import feature to import your VB DLL into your VC project. This
will generate smart ptr wrapper classes based on the component's typelib
(see the generated .tlh and .tli files for details).
For example, supposed the VB class you want to use is called MyObject. Your
code might look like this:
#import "C:\SomeVBCom.DLL" no_namespace
...
_MyObjectPtr pMyObj; // the trailing "Ptr" indicates a generated smart ptr
class
pMyObj.CreateInstance(__uuidof(MyObject));
pMyObj->SomeMethod();
Andy
Hi all,
Please tell me how can I access the interfaces in the ActiveX Dll developed
in
VB . I trying to iuse a VB ActiveX DLL in plain C++, One way is to go
through
Automation. Is ther any way to get it through IUnknown.
Thanks in Advance,
regards,
Popsy