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 LysleRank #49 · 31K reputationPosted Nov 23, 2006, 10:11 PM EST
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 );