I am using Shell commands to start a process. My development environment is C++/QT Creator/QT Libraries and Windows APIs.
How can I handle the HINSTANCE return value? if (hInstance < 32) code throwing a compilation error
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 < 32)
qDebug() << "Error";