vs2005远程调试服务进程报R6025
win7x64開發環境中 在用vs2005遠程調試windows2003系統中的服務進程時候,會遇到報R6025, --pure virutal function call的錯誤,原因是win7x64上的ado接口跟服務進程所在的系統的ado接口不兼容,當前工程引入的ado語句是:
#import "C:\Program Files (x86)\Common Files\System\ADO\msado15.dll" \
no_namespace rename("EOF", "EndOfFile")
解決辦法是,找到msado60_Backcompat_i386.tlb放在?C:\Program Files (x86)\Common Files\System\ado 目錄下,將上述引用ado語句改為
#import "C:\Program Files (x86)\Common Files\System\ado\msado60_Backcompat_i386.tlb" no_namespace rename("EOF", "EndOfFile")
另外:如果是編譯x64的版本,需要將x64版本的ado庫?msado60_Backcompat_x64.tlb放在C:\Program Files \Common Files\System\ado 目錄下,相應的引用語句改為
#import "C:\Program Files \Common Files\System\ado\msado60_Backcompat_x64.tlb" no_namespace rename("EOF", "EndOfFile")
總結
以上是生活随笔為你收集整理的vs2005远程调试服务进程报R6025的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如果Windows下Quick软件运行时
- 下一篇: 一行代码告诉你为什么python代码中要