Using VB ActiveX DLL in raw C++?? 
Author Message
 Using VB ActiveX DLL in raw C++??

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


Tue, 14 Oct 2003 14:52:44 GMT  
 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



Tue, 14 Oct 2003 15:22:38 GMT  
 Using VB ActiveX DLL in raw C++??


Fri, 19 Jun 1992 00:00:00 GMT  
 Using VB ActiveX DLL in raw C++??
Thanks Andy..


Tue, 14 Oct 2003 17:32:52 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. using LoadLibrary and GetProcAddress from C++ to get at VB ActiveX DLL

2. ActiveX C++ using ActiveX VB

3. Problem using VB 5 activex DLL in a VC++ activex control

4. accessing objects in a c++ DLL from a c++ activeX control placed in a VB application

5. accessing objects in a c++ DLL from a c++ activeX control placed in a VB application

6. Show modeless form in VB ActiveX DLL from C++ MFC DLL

7. Using VC++ to access ActiveX DLL created by VB

8. Using VB ActiveX DLL Class in IDL

9. Problem in using VB Activex dll in Atl service

10. Help accessing VB ActiveX DLL from C using only Win32

11. Can call a VB ActiveX DLL's method using Invoke, but not directly

12. Using VB-created Activex DLLs in a VC program

 

 
Powered by phpBB® Forum Software