简体   繁体   English

cmcfg32.lib在哪里?

[英]Where is cmcfg32.lib?

I found a source code on MSDN about how to enable/disable privileges in C++ 我在MSDN上找到了关于如何在C ++中启用/禁用权限的源代码

According to the source code, the linker must include cmcfg32.lib , but it can't be found... 根据源代码,链接器必须包含cmcfg32.lib ,但无法找到它...

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. 我尝试编译而不包括该lib,它编译没有任何错误,但是当我启动我的程序时,它崩溃了一个致命的错误。

So please, if you know which SDK contains cmcfg32.lib, let me know ;) 所以,如果您知道哪个SDK包含cmcfg32.lib,请告诉我;)

Thanks! 谢谢!

This code links for me without trouble, using the 6.0a version of the SDK. 使用6.0a版本的SDK,此代码可以毫发无损地链接到我。 "cmcfg" googles as Connection Manager Configuration, no idea what that is or why it would be needed here. “cmcfg”googles作为连接管理器配置,不知道这是什么或为什么在这里需要它。

Just delete the #pragma. 只需删除#pragma即可。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM