Hi,
I'm trying to call methods in a C# .NET dll.
I'm able to do the same thing via C++ with a declaration as follows...
extern "C" {
__declspec(dllexport) int CallFromAV1( char *lpParam );
}
How do I do the same in C#?
Many thanks in advance...
Glenn Manion
Scott LyslePosted Nov 24, 2006, 3:11 AM
using
System.Runtime.InteropServices;Then something like this (with your dll of course)
[
DllImport("kernel32.dll")]private static extern bool Beep( int frequency, int duration );