I just tried compiling a release version of my program in VC++ 2005 express and got the following error:
Code:
.\pconnect.cpp(58) : error C2664: 'CreateProcessW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
It is from this line of code:
Code:
if ((CreateProcess(szPath, pszParam, 0, 0, TRUE,
CREATE_DEFAULT_ERROR_MODE|CREATE_NO_WINDOW, 0, 0, &siStartupInfo,
&piProcessInfo)) != false)
this doesnt occur when I compile for debug. Just wondering why this happens and an easy way to fix it. Thanks