2

Possible Duplicate:
How do I call unmanaged C/C++ code from a C# ASP.NET webpage

is there a way to link the two?

Community
  • 1
  • 1
Timmy
  • 11,978
  • 19
  • 71
  • 104
  • 3
    http://stackoverflow.com/questions/720004/how-do-i-call-unmanaged-c-c-code-from-a-c-asp-net-webpage – Eric Mickelsen May 26 '10 at 19:37
  • many examples Windows® API Code Pack for Microsoft® .NET Framework(http://code.msdn.microsoft.com/WindowsAPICodePack/Release/ProjectReleases.aspx?ReleaseId=3574) – lsalamon May 26 '10 at 19:42

3 Answers3

5

P/Invoke is the approach you want

plinth
  • 47,047
  • 11
  • 77
  • 120
2

Search for PInvoke in C# you will find plenty of resources. Like this one:

http://msdn.microsoft.com/en-us/magazine/cc164123.aspx

PeterFromCologne
  • 10,001
  • 8
  • 35
  • 45
2

Yes, PInvoke is the way. This site/wiki will be a great help likely.

kenny
  • 20,210
  • 7
  • 48
  • 84