程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C >> 關於C >> Cannot find or open the PDB file

Cannot find or open the PDB file

編輯:關於C

在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. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved