Cannot find or 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命令行下执行程序。
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值