I just tried compiling a release version of my program in VC++ 2005 express and got the following error:
It is from this line of code: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
this doesnt occur when I compile for debug. Just wondering why this happens and an easy way to fix it. ThanksCode:if ((CreateProcess(szPath, pszParam, 0, 0, TRUE, CREATE_DEFAULT_ERROR_MODE|CREATE_NO_WINDOW, 0, 0, &siStartupInfo, &piProcessInfo)) != false)



LinkBack URL
About LinkBacks


