Is it possible to access vb dll's in C++ code 
Author Message
 Is it possible to access vb dll's in C++ code

Greets,

    Visual Basic DLLs are in-process COM componenents.  Because the type
library for a Visual Basic COM DLL is compiled into the component itself,
you have a couple options:  a) you can use LoadLibrary() to load the DLL,
use GetProcAddress() for DllGetClassObject() and create an instance of
IClassFactory and create the objects; b) you can use compiler COM support
(preferred) via the #import statement and use the _com_ptr_t generated
wrapper classes to instantiate and use the COM object(s) hosted in the VB
DLL.

Regards,

Joe


Quote:
> I have some visual basic dll's I would like to access in
> my C++ code.

> I know vb can read the C++ dll's.  I can't find any
> literature saying it can be done the other way round.

> Is it possible and how do I do it?



Sun, 14 Dec 2003 23:26:30 GMT  
 Is it possible to access vb dll's in C++ code
Good answer.

yhhuang
ICQ:91074870



Mon, 15 Dec 2003 13:18:39 GMT  
 
 [ 2 post ] 

 Relevant Pages 

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

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

3. VB programmer needs help with C++ API's and DLL's

4. VB accessing a "C++ DLL"

5. interfacing C/C++ DLL's with V.B.

6. Borland C C++ DLL's for VB problems

7. C C++ DLL's for VB help

8. VB Functions to C++ DLL's

9. Writing C++ DLL's for use in VB

10. Calling VB code from C++ DLL

11. Using a VB Active X DLL's functions in C++

12. C++ DLL's and VB

 

 
Powered by phpBB® Forum Software