cmcfg32.lib在哪里? [英] Where is cmcfg32.lib?
问题描述
我在MSDN上找到关于如何在C ++中启用/禁用特权
根据源代码,链接器必须包含 cmcfg32.lib ,但它可以'找到...
我试图编译没有包含lib,它编译没有任何错误,但当我启动我的程序,它崩溃与一个致命错误。
因此,如果您知道哪个SDK包含cmcfg32.lib,请告诉我们。)
谢谢!
它看起来像我的代码中的小错误。删除该行:
#pragma注释(lib,cmcfg32.lib)
其中,如果您要自动链接正确的库,请将其更改为:
#pragma comment(lib,advapi32.lib)
I found a source code on MSDN about how to enable/disable privileges in C++
According to the source code, the linker must include cmcfg32.lib, but it can't be found...
I tried to compile without including that lib, it compiles without any error, but when I launch my program, it crashes with a fatal error.
So please, if you know which SDK contains cmcfg32.lib, let me know ;)
Thanks!
解决方案It looks (to me) like a minor error in the code. Delete the line:
#pragma comment(lib, "cmcfg32.lib")
Of, if you want the correct library linked automatically, change it to:
#pragma comment(lib, "advapi32.lib")
这篇关于cmcfg32.lib在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!