Category : asynccallback

I want call C# callback function from C++ native dll. This works OK in one thread, but does not work with async run. Please look at code and help me. I have put comment where I have issues. C++ dll: typedef void __cdecl CalbackCommand(uint8_t idCmd); CalbackCommand* g_command; void __cdecl ReadPort(CalbackCommand *cmdFunc) { g_command(13); } extern ..

Read more