title: why does ::CreateProcess(path,cmd,...) fail with error "File not found"?
body: <p>I am trying to have a C++ program call an already made C# program to run in the background.</p>
  
  <pre><code>STARTUPINFO info = {sizeof(info)};
  PROCESS_INFORMATION processinfo;
  DWORD error1 = GetLastError();
  bool x = ::CreateProcess((LPCWSTR)"C:\Convert_Shrink.exe", GetCommandLine(), NULL, NULL, false, 0,NULL,NULL, &amp;info, &amp;processinfo);
  DWORD error = GetLastError();
  </code></pre>
  
  <p>error1 is 0 before CreateProcess
  error is 2 after CreateProcess</p>
  
  <p>error 2:</p>
  
  <pre><code>ERROR_FILE_NOT_FOUND 2 (0x2) The system cannot find the file specified.
  </code></pre>
  
  <p>I've changed it to C:\ \ incase they were checking for escape sequences but I still get error 2 and I'm not sure why.</p>