CreateProcess() Error

前端 未结 2 461
无人共我
无人共我 2020-12-20 07:28
STARTUPINFO si;
PROCESS_INFORMATION pi;
memset(&si, 0, sizeof(si));
memset(&pi, 0, sizeof(pi));
si.cb = sizeof(si);

LPCWSTR procName =(LPCWSTR)\"D:\\\\test          


        
2条回答
  •  被撕碎了的回忆
    2020-12-20 08:01

    You use the L prefix to make a wide character string:

    L"D:\\test dir 1\\Calc.exe";
    

    Casting a string literal to a different character width does not make a string wider.

提交回复
热议问题