I want to start a client application for receiving touch events after some event occurs. For that, I’m trying to use the CreateProcess() function from windows.h, but it doesn’t work!
I thought I had to include some other .h file, or I had included the wrong file, but when I built another project just to test it out, it worked, so I think it has something to do with the CCV 1.3a codebase that I’m using.
Here is the working snippet that I made the test with:
memset(&si, 0, sizeof(si));
memset(&pi, 0, sizeof(pi));
appname = (TCHAR*)malloc(sizeof(TCHAR)*50);
CreateProcess(NULL, appname, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
Edit: Managed to get it working! I had to use CreateProcessW instead.