UAC权限问题 #83
Unanswered
fengqing-maker
asked this question in
Q&A
UAC权限问题
#83
Replies: 1 comment 2 replies
-
|
Please use English if possible. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
现象:在配置属性->连接器->清单文件->UAC执行级别->修改为requireAdministrator;然后编译生成exe,这时候打开exe是不会提示使用管理员权限。
修改方案:在HexCtrl.h里面注释掉#pragma comment(linker,"/manifestdependency:....),然后重新生成exe,这时候打开exe是会提示使用管理员权限。
问题:1.#pragma comment(linker,"/manifestdependency:...)这行代码是干嘛的?(猜测是控件的style之类的)
2.请问下能否去掉?去掉后有什么影响
3.您当时为什么要加载这一行代码?
Beta Was this translation helpful? Give feedback.
All reactions