|
-
May 5th, 2002, 07:21 PM
#1
Thread Starter
New Member
Importing DLL classes to VB
Hi, I hope someone knows how to do this because I can't seem to figure it out. I've written a DLL in C++ which contains a class I want to use in VB. Importing functions from a DLL is easy.. but I can't figure out how to import a class.
I am exporting my class from my DLL as such:
class __declspec(dllexport) TestClass {
public:
int x;
};
Notice the "__declspec(dllexport)" flag so i am NOT working with any DEF files or anything like that. How may I instantiate a TestClass object in my VB app?
Thanks in advance.
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
|