【发布时间】:2009-11-23 16:52:36
【问题描述】:
我知道我无法使用默认的“平台目标:任何 CPU”构建设置编译我的 C# 代码并调用 32 位 C DLL。但是如果我将此设置更改为“平台目标:x86”,C# 代码应该在 32 位上下文下运行并在该 32 位上下文下调用 C DLL,对吗?虽然它似乎不起作用。
我是否必须使用一些特殊的注册表或其他东西来注册 32 位 C DLL?
我使用的是 Windows Server 2003 64 位。
错误是:
Runtime Error!
[Path to dll]
R6034
An application has made an attempt to load the C runtime library incorrectly.
【问题讨论】:
-
将平台目标设置为 x86 应该就足够了。您收到什么错误消息?
-
错误是:运行时错误! [dll 路径] R6034 应用程序试图错误地加载 C 运行时库。
标签: c# 64-bit windows-server-2003