Hello all,
I have created a DLL using C++. I use this dll in a C# project. How can I
make C# listen to an event that is raised inside one of the functions of the
dll?
for exaxmple:
C++:
void MyCPPFunc()
{
HANDLE hEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
SetEvent(hEvent);
}
----------
C#:
//Need to listen to hEvent and do some stuff when it is signaled??
[DllImport("MyDll.dll")]
static extern void MyCPPFunc();
Please help!