|
-
Mar 18th, 2002, 11:43 AM
#1
Thread Starter
PowerPoster
Calling Exported VC++ Class in WIN32 DLL
How can i call the function belong to the exported class from Visual Basic?
-
Mar 18th, 2002, 04:45 PM
#2
Using a C++ class in VB is nearly impossible (it is possible, but very hard and likely to attract bugs), except when you use .NET (and that's not a C++ class anymore).
You'd have to look up the mangled name, specify it as the alias of the function name you really want to use, then create a Type in VB that exactly matches the data structure of the class, initialize it correctly and pass it ByRef as the first parameter to the function (that's the this pointer).
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 18th, 2002, 07:59 PM
#3
Thread Starter
PowerPoster
Thx CornedBee advice
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
|