title: How to check ShellExecute command return(HINSTANCE ) code in QT Creator
body: <p>I am using Shell commands to start a process. My development environment is C++/QT Creator/QT Libraries and Windows APIs.</p>
  
  <p>How can I handle the HINSTANCE return value?  if (hInstance &lt; 32) code throwing a compilation error</p>
  
  <pre><code>    437: error: ISO C++ forbids comparison between pointer and integer
  
  
      HINSTANCE hInstance = ShellExecute(0, QString("open").toStdWString().c_str(), Path.toStdWString().c_str(), 0, 0, SW_SHOWNORMAL);
     if (hInstance &lt; 32)
        qDebug() &lt;&lt; "Error";
  </code></pre>