Where is cmcfg32.lib?

你说的曾经没有我的故事 提交于 2019-12-23 12:24:03

问题


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!


回答1:


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")



回答2:


This code links for me without trouble, using the 6.0a version of the SDK. "cmcfg" googles as Connection Manager Configuration, no idea what that is or why it would be needed here.

Just delete the #pragma.



来源:https://stackoverflow.com/questions/2523099/where-is-cmcfg32-lib

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!