开发者

Where is cmcfg32.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")


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜