coder_djc |
2017-09-08 13:25 |
软件开机自启动失败
环境:Qt5 + VS2013 开机启动时报错: [attachment=17814] 代码如下:main.cpp中 QSettings *reg = new QSettings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",QSettings::NativeFormat); QString strAppPath=QCoreApplication::applicationFilePath(); strAppPath.replace('/','\\'); reg->setValue("MManagementPlatform",strAppPath);
|
|