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
Post a Comment