I put these lines into PlayerInput.cpp:
Code:
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
CreateProcess( NULL,"E:\\Program Files (x86)\\Notepad++\\notepad++.exe",NULL,NULL,FALSE, 0,NULL, NULL, &si, &pi );
But I get these error informations in the output window after complie
Code:
2> PlayerInput.cpp
2>PlayerInput.cpp(1233): error C2065: 'STARTUPINFO' : undeclared identifier
2>PlayerInput.cpp(1233): error C2146: syntax error : missing ';' before identifier 'si'
2>PlayerInput.cpp(1233): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1234): error C2065: 'PROCESS_INFORMATION' : undeclared identifier
2>PlayerInput.cpp(1234): error C2146: syntax error : missing ';' before identifier 'pi'
2>PlayerInput.cpp(1234): error C2065: 'pi' : undeclared identifier
2>PlayerInput.cpp(1235): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1235): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1235): error C2070: ''unknown-type'': illegal sizeof operand
2>PlayerInput.cpp(1235): error C3861: 'ZeroMemory': identifier not found
2>PlayerInput.cpp(1236): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1236): error C2228: left of '.cb' must have class/struct/union
2> type is ''unknown-type''
2>PlayerInput.cpp(1236): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1236): error C2070: ''unknown-type'': illegal sizeof operand
2>PlayerInput.cpp(1237): error C2065: 'pi' : undeclared identifier
2>PlayerInput.cpp(1237): error C2065: 'pi' : undeclared identifier
2>PlayerInput.cpp(1237): error C2070: ''unknown-type'': illegal sizeof operand
2>PlayerInput.cpp(1237): error C3861: 'ZeroMemory': identifier not found
2>PlayerInput.cpp(1242): error C2065: 'FALSE' : undeclared identifier
2>PlayerInput.cpp(1242): error C2065: 'si' : undeclared identifier
2>PlayerInput.cpp(1242): error C2065: 'pi' : undeclared identifier
2>PlayerInput.cpp(1242): error C3861: 'CreateProcess': identifier not found
What is wrong? help