使用CallNtPowerInformation时出现无法找到CallNtPowerInformation
错误:
error LNK2019: 无法解析的外部符号 __imp__InternetGetCookieA@16 ,该符号在函数 "void __cdecl MySend(unsigned int)" (?MySend@@YAXI@Z) 中被引用
(其他类似的错误也一样)
原因:
应该是你用到了一个库函数,但是你的项目没有把它的库加进去。
解决方法:
项目 --> 属性 --> 链接器 --> 输入 --> 附近依赖项 填入你使用到的库
http://www.cppblog.com/longshen/archive/2010/04/02/111418.html