c++ - How to check ShellExecute command return(HINSTANCE ) code in QT Creator -


i using shell commands start process. development environment c++/qt creator/qt libraries , windows apis.

how can handle hinstance return value? if (hinstance < 32) code throwing compilation error

    437: error: iso c++ forbids comparison between pointer , integer       hinstance hinstance = shellexecute(0, qstring("open").tostdwstring().c_str(), path.tostdwstring().c_str(), 0, 0, sw_shownormal);    if (hinstance < 32)       qdebug() << "error"; 


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -