Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call c++ functions from c#

Status
Not open for further replies.

Korach

Programmer
Jun 2, 2003
303
IL
hi,

I have a class written in c++. My graphic interface is in c#. Is there any way to create an instance of this c++ class in my c# code, and use it's functions?

Thanks
 
You would have to wrap it in either a Managed C++ class so that other .NET framework components can call it, or wrap it in a COM layer with ATL, again, so .NET (and legacy COM stuff like VB6 programs) can call it.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top