Archived

This topic is now archived and is closed to further replies.

Maega

Exporting C++ class to Visual Basic

Recommended Posts

Maega    707
What are the steps I need to take to do this? Is it even possible? I searched google, but didn''t find anything useful.

Share this post


Link to post
Share on other sites
BlueDev    126
Hello Maega,

What do you mean by exporting.

1) You are trying to learn how to recode it in VB?
2) You are trying to make a DLL or Library out of your class then to import it in using VB?
3) other...

Well for all I''ve known I''m sure you could possibly rewrite your class and code in VB as long as you know how to code it. I havent seen a program to convert all the code and so forth, probably no need for it but for the exception maybe they will design something.

Anyway, just let me know what you are trying to do, maybe I could help a little bit more.


[BDS]StackOverflow

Share this post


Link to post
Share on other sites
Promit    13246
If I understand correctly --

You want to define a C++ class in a DLL and then access that class from Visual Basic?

The only way to do this is to use COM. This is a long, long thing to explain, so you may as well hit MSDN and look for stuff; there''s a lot there.

Share this post


Link to post
Share on other sites
Shannon Barber    1681
I wrote an ATL tutorial some time ago (that makes a COM dll using C++ & the ATL, and uses it in Excel because I didn''t have VB installed), but it''s embedded in a thread somewhere on the board. Lemme try to find it...

Share this post


Link to post
Share on other sites