title: passing file path as argument in shellexecute
body: <p>i want my other c++ program to be run from another file so i am using shell execute. Mu code is :</p>
  
  <pre><code>#pragma comment(lib,"shell32.lib")  
  #include "windows.h"
  #include&lt;Shellapi.h&gt;
  
  #include&lt;stdio.h&gt;
  #include&lt;iostream&gt;
  using namespace std;
  
  class spwan{
  public:
      //char szPath[] = "";
      void run(char path[]);
  };
  
  void spwan::run(char szPath[]){
  HINSTANCE ShellExecute(HWND,  "open", szPath,"","",SW_SHOW);    
      cout&lt;&lt;"program executed";
  }
  
  int main ()
  {
   spwan s;
   s.run("path to the file");
  }
  </code></pre>
  
  <p>But i am having problem like expected a type specifier with "open" and i am not able to define the path using szPath. Anyhelp. </p>
  
  <p>errors more specifically are:
  its giving me error for line : HINSTANCE ShellExecute(HWND, "open", szPath,"","",SW_SHOW); as syntax error : 'string'</p>
  
  <p>when i am giving path like this :- C:\Users\saira\Documents\Visual Studio 2010\Projects\phase_1_solver\Debug\phase_1_solver.exe its giving errors like : warning C4129: 's' : unrecognized character escape sequence warning C4129: 'D' : unrecognized character escape sequence</p>