PDA

Click to See Complete Forum and Search --> : incorporating VB in VC++ DLL?


igravag
Dec 15th, 2000, 11:23 AM
I'm wondering whether or not one can call VB code from VC++. (I'm using MS Visual 6.0 in both cases.) I've seen postings going the other direction, but no references to using VB from inside of VC++.
Before you ask, I've got a lot of code already written in VB and found out that the application I'm supposed to be interfacing to uses VC++ DLLs only.
My first guess as to what to do is to create VB DLLs, incorporate those into the VC++ DLLs and pass the whole lot to the calling application.

Am I in left field?

parksie
Dec 15th, 2000, 12:50 PM
I think you've got a good idea here. How about using VB DLLs as you said, and make a C++ DLL that uses COM to call the VB DLLs, with an API supplied to wrap the code?