By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,640 Members | 1,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,640 IT Pros & Developers. It's quick & easy.

transfering Class between languages

P: n/a
hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
application? going along with it, say i ahve a VB.net class, how would i use
it in my C++ project?
thanks
--
-iwdu15
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"iwdu15" <iw****@discussions.microsoft.com> schrieb:
hi, say i ahve a class i wrote in C++, how would i use it in my VB.net
application?
Make it a COM class and set a reference to the DLL to use the class in your
VB.NET project. Alternatively you can write a managed wrapper around the
class using Managed Extensions for C++ or C++/CLI.
going along with it, say i ahve a VB.net class, how would i use
it in my C++ project?


Either make the class a 'ComClass' (+ 'ComVisible' for its members) or use
Managed Extensions for C++ to use the VB.NET class in C++.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
how would i do either of those suggestions?
thanks
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.