I am trying to control a running application written in C ++ using another C # application.
In my C ++ code, I defined an API:
_declspec(dllexport) //is this even possible when compiling an .exe? int getSomething();
Is there any way to call this function from C # code?
Will the classic approach work:
[DllImport("myexe.exe", CharSet = CharSet.Auto)] public static extern int getSomething();
source share