diff -r 6c08d4d7219e -r 9ccef81f02ab front_idill/extern/fajran-npTuioClient/TestClient/Test.cpp --- a/front_idill/extern/fajran-npTuioClient/TestClient/Test.cpp Thu Apr 12 13:09:46 2012 +0200 +++ b/front_idill/extern/fajran-npTuioClient/TestClient/Test.cpp Thu Apr 12 15:33:25 2012 +0200 @@ -1,34 +1,38 @@ -#include -#include -#include -#include - -using namespace std; - -int main(int argc, char ** argv) -{ - /* get handle to dll */ - HINSTANCE hGetProcIDDLL = LoadLibrary((LPCWSTR)"npTuioClient.dll"); - - /* get pointer to the function in the dll*/ - FARPROC lpfnGetProcessID = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_start"); - FARPROC lpfnGetProcessID2 = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_stop"); +/* + Modified by alexandre.bastien@iri.centrepompidou.fr to debug this project. +*/ - /* - Define the Function in the DLL for reuse. This is just prototyping the dll's function. - A mock of it. Use "stdcall" for maximum compatibility. - */ - typedef int (__stdcall * pICFUNC)(void); - - pICFUNC t; - t = pICFUNC(lpfnGetProcessID); - - /* The actual call to the function contained in the dll */ - t(); - - /* Release the Dll */ - FreeLibrary(hGetProcIDDLL); - - system("PAUSE"); - return 0; +#include +#include +#include +#include + +using namespace std; + +int main(int argc, char ** argv) +{ + /* get handle to dll */ + HINSTANCE hGetProcIDDLL = LoadLibrary((LPCWSTR)"npTuioClient.dll"); + + /* get pointer to the function in the dll*/ + FARPROC lpfnGetProcessID = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_start"); + FARPROC lpfnGetProcessID2 = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_stop"); + + /* + Define the Function in the DLL for reuse. This is just prototyping the dll's function. + A mock of it. Use "stdcall" for maximum compatibility. + */ + typedef int (__stdcall * pICFUNC)(void); + + pICFUNC t; + t = pICFUNC(lpfnGetProcessID); + + /* The actual call to the function contained in the dll */ + t(); + + /* Release the Dll */ + FreeLibrary(hGetProcIDDLL); + + system("PAUSE"); + return 0; } \ No newline at end of file