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!

linking C functions 1

Status
Not open for further replies.

karthi01

Programmer
May 21, 2003
1
US
How should I call a function written in C/C++ in C#?
How will I compile and link the C# program?
 
You would write your C/C++ function as a Win32 style DLL, and then call it via .NET's DllImport method/code attribute.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top