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
  • 12,468
  • 20
  • 77
  • 107
  • 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
  • 48,267
  • 11
  • 78
  • 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,213
  • 9
  • 36
  • 46
2

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

kenny
  • 21,522
  • 8
  • 49
  • 87