设为首页 加入收藏

TOP

Cannot find or open the PDB file
2014-11-23 22:08:15 来源: 作者: 【 】 浏览:5
Tags:Cannot find open the PDB file

在vs2010下写程序调一个API,结果返回的句柄始终为NULL,GetLastError() = 126。

说明LoadLibrary不成功,全部重新配置之后,Debug结果如下:

Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\shlwapi.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file


非常费解,在CSDN论坛上查到解决办法:


原因是程序输出的地方是系统而不是vs2010

Ctrl + F5运行就可以了
或者在cmd命令行下执行程序。

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C语言声明一维动态数组 下一篇C语言中的一个关于求正方形个数的..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: