使用clr dll的vc6项目 [英] vc6 project using a clr dll

查看:81
本文介绍了使用clr dll的vc6项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用vs2010用简单的测试功能(仅使用纯c ++)编写了一个小的测试dll

I coded a small test dll with vs2010 with a simple test function (which only is using pure c++)

我试图在vc6项目中使用该dll,该项目在Windows 7上完美运行.即使我尝试使用c ++/CLI也能正常工作.(huray)

I tried to use this dll in a vc6 project which works perfectly on windows 7. And even if I try to use c++/CLI its working.(huray)

但是,一旦我尝试将其部署到WinXP上,就会出现问题:

But as soon as I try to deploy the thing onto WinXP problems come up:

如果禁用了clr-support,则dll将正常工作.但是,如果我启用CLR支持(即使dll仅使用纯c ++),则在启动时会发生以下情况:

If clr-support is disabled the dll is working. But if I enable CLR support (even if the dll is only using pure c++) the following thing happens at startup:

(NTDLL.DLL)0x00000005访问冲突.

(NTDLL.DLL) 0x00000005 Access Violation.

在win7上,启动时的输出通常为:

On win7 the output while starting up normally reads:

已加载"C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ mscoreei.dll",找不到匹配的符号信息.

Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', no matching symbolic information found.

在同一行.

尽管我的dll已在此时成功加载.

Though my dll already is loaded successfully at this time.

 

您知道这是XP上的已知问题吗?还是我错过了什么?

Do you know if this is a known issue on XP? Or is there something I missed?

 

我的XP配置为:

xp,带有Service Pack 3,已安装当前的vc10 redist和.NET4.

xp with service pack 3 with current vc10 redist and .NET4 installed.

 

事先打招呼

 

推荐答案

 

 

在win7上,启动时的输出通常为:

On win7 the output while starting up normally reads:

已加载"C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ mscoreei.dll",找不到匹配的符号信息.

Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', no matching symbolic information found.

在同一行.

尽管我的dll已在此时成功加载.

Though my dll already is loaded successfully at this time.

 

"错误消息是由于未安装所指示的DLL的符号(.dbg)文件或相对于DLL已过期. ...

"The error message is due to the symbol (.dbg) files for the indicated DLLs not being installed or being out-of-date with respect to the DLLs. ...

您可以忽略此错误消息,因为无论如何这些文件都应该能够成功调试应用程序."

You can ignore this error message because you should be able to debug your application successfully without these files anyway."

(来自类似问题, http://support.microsoft.com/kb/216656 )


这篇关于使用clr dll的vc6项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆