title: C++ Executing external process
body: <p>I am trying to run an executable from a c++ program. I have looked and found 2 options:<br>
  system("C:\filepath\file.exe"); <br>
  and<br>
  ShellExecute(GetDesktopWindow(), "open", "C:\filepath\file.exe", NULL, NULL, SW_SHOWNORMAL);<br>
  Everything is beautiful, except it doesn't work.<br>
  For the first option, I had to include, apart from windows.h, also cstdlib, otherwise my code didn't build.<br>
  When I run the program, I get the error: <br>
  "file.exe" is not recognized as an internal or external command<br>
  I have set the Common Language Runtime Support (/clr) option for my project (and I also had to set the option Multi-threaded Debug DLL (/MDd) for the Runtime Library, otherwise again, it wouldn't build).<br>
  The second option will not build even with both libraries included. I get error: <br>
  error C3861: 'ShellExecute': identifier not found<br>
  <br>
  I am using VS2010 on Windows7 - and would like this to work on multiplatform...<br></p>
  
  <p>Am I asking too much ? <br>
  Thank you.</p>