
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?