Advertisement

DLL: Exporting cpp classes for VB

Started by May 13, 2001 08:38 PM
0 comments, last by MatuX 23 years, 9 months ago
So... As far as I have been investigating thru the web, books, and msdn, there is no real way I can do this. I need to develop a dll to be linked with VB, I want to make in C++ (since I''m a beginner/intermediate C++ programmer) to practice what I have learned, but it seems that I''m going to have to make it in C... Is my last hope out there? And if there''s, could you tell me how do I make this? (btw, it has to be for VB and I can''t change that )
It is my understanding that there is absolutely no way to direclty export you''re class to VB from a DLL; however, COM is you''re way around that issue. I don''t really know how to implement COM with VB, but the basic premis to COM is that you create a series of functions which can minipulate your classes. You then export those functions to VB. For example, rather than saying "CSomeClass* a = new CSomeClass;" you would call an exported function to create an instance of the class, like "Call CreateInstance( IID_IMyClass, a )".

Clearly what I''ve said isn''t going to be that much help, but maybe it can get you going in the correct direction.

This topic is closed to new replies.

Advertisement