QT调用windows、api

    xiaoxiao2021-03-25  214

    #include <QCoreApplication> #include <windows.h> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); ::WinExec("calc.exe",5); return a.exec();

    }

    .pro

     

    LIBS +="C:\Program Files (x86)\Microsoft Visual Studio\VC98\Lib\User32.LIB"

    转载请注明原文地址: https://ju.6miu.com/read-1454.html

    最新回复(0)