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")
本文介绍了解决在Windows7 x64环境下使用Visual Studio 2005进行远程调试Windows Server 2003服务进程中遇到的R6025错误的方法。通过更换不同版本的ADO库来确保兼容性。
557

被折叠的 条评论
为什么被折叠?



