[英]C++ Visual Studio 2008, moving a project from 64-bit to 32-bit
I've trying to use my 64-bit C++ application into a 32-bit system, but I've encountered some problems with Visual Studio 2008. 我试图将我的64位C ++应用程序用于32位系统,但是Visual Studio 2008遇到了一些问题。
I've just downloaded the solution on my 32-bit pc (Microsoft Windows Xp), and set Visual Studio settings to: Debug|Win32 我刚刚在32位PC(Microsoft Windows Xp)上下载了该解决方案,并将Visual Studio设置设置为:Debug | Win32
The compiling phase is alright, but if I try to run the program, the system says: 编译阶段还可以,但是如果我尝试运行该程序,系统会显示:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\\wspace4\\BioTesi\\BioCpp.dll: %1 is not a valid Win32 application
Somehow the system does not interpret my dll as 32-bit. 系统不知何故无法将我的dll解释为32位。 I think I'm missin' some Visual Studio setting... but which?
我想我错过了一些Visual Studio设置...但是,哪一个呢?
How to solve this problem? 如何解决这个问题呢? Thanks!
谢谢!
Have you set up different build paths for the 32 and 64-bit dlls and exes? 您是否为32位和64位dll和exe设置了不同的构建路径? It's quite likely you have some 64-bit outputs overwriting the 32-bit ones.
您很有可能有一些64位输出会覆盖32位输出。 Some things to try:
可以尝试的一些事情:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.