I want to call a dll from windows.
it would have stand “C” inteface,and allows me to
extern “C” ConnectandFetch(char* pHost,int Port, callback_ptr1,callback_ptr2); //this would make a thread innner.
well,I don’kt know how to use the callback ,so that when the data comming.
the main.exe made by XOJO could fire the callback well?
what if I use the second way?
I build a console program with the DLL name “test.exe” ,and use IPCsocket to connect my main.exe?