PDA

Click to See Complete Forum and Search --> : VB DLL in C++


mace
Jun 30th, 2000, 01:11 PM
Hi all...

I'm new to C++ Programming, but I have to write some code that will access a .DLL I wrote in VB through C++. How do I do I go about doing this?

parksie
Jun 30th, 2000, 01:47 PM
If you made an ActiveX DLL in VB, then it doesn't export the functions in that way. It is possible, but painful. You would need to make sure the DLL was registered properly, access COM, create an instance of the object, and then do your processing. After that you need to return your instance to the system and exit COM.
If you just need VB functions, then you can often rewrite them in C++ just as easily, or there was a program ages ago that compiled VB into a 'standard' DLL with entry points and the like. If I do some research into COM I might be able to knock something up and get back to you.
Since you're new to C++ programming, I get the nagging feeling that anything that I send will be utterly incomprehensible, as is most of COM. (Introductory books have been written that are massive tomes of knowledge).