equal
deleted
inserted
replaced
|
1 /* |
|
2 Modified by alexandre.bastien@iri.centrepompidou.fr to debug this project. |
|
3 */ |
|
4 |
1 #include <cstdlib> |
5 #include <cstdlib> |
2 #include <cstdio> |
6 #include <cstdio> |
3 #include <iostream> |
7 #include <iostream> |
4 #include <Windows.h> |
8 #include <Windows.h> |
5 |
9 |
6 using namespace std; |
10 using namespace std; |
7 |
11 |
8 int main(int argc, char ** argv) |
12 int main(int argc, char ** argv) |
9 { |
13 { |
10 /* get handle to dll */ |
14 /* get handle to dll */ |
11 HINSTANCE hGetProcIDDLL = LoadLibrary((LPCWSTR)"npTuioClient.dll"); |
15 HINSTANCE hGetProcIDDLL = LoadLibrary((LPCWSTR)"npTuioClient.dll"); |
12 |
16 |
13 /* get pointer to the function in the dll*/ |
17 /* get pointer to the function in the dll*/ |
14 FARPROC lpfnGetProcessID = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_start"); |
18 FARPROC lpfnGetProcessID = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_start"); |
15 FARPROC lpfnGetProcessID2 = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_stop"); |
19 FARPROC lpfnGetProcessID2 = GetProcAddress(HMODULE (hGetProcIDDLL),"tuio_stop"); |
27 t(); |
31 t(); |
28 |
32 |
29 /* Release the Dll */ |
33 /* Release the Dll */ |
30 FreeLibrary(hGetProcIDDLL); |
34 FreeLibrary(hGetProcIDDLL); |
31 |
35 |
32 system("PAUSE"); |
36 system("PAUSE"); |
33 return 0; |
37 return 0; |
34 } |
38 } |