|
-
Jun 30th, 2000, 01:11 PM
#1
Thread Starter
Junior Member
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?
-
Jun 30th, 2000, 01:47 PM
#2
Monday Morning Lunatic
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).
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|