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.