简体   繁体   English

C ++ Visual Studio 2008,将项目从64位迁移到32位

[英]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: 可以尝试的一些事情:

  • Check out a clean workspace from your version control system so you don't have any unexpected items lying around 从版本控制系统中签出干净的工作区,以免周围没有意外物品
  • Open the Configuration Manager and check that the 32-bit configuration of the solution is actually building the 32-bit versions of each project 打开配置管理器,并检查解决方案的32位配置是否正在实际构建每个项目的32位版本
  • Use DependencyWalker which will show the .exe and .dll icons with a '64' overlay if they happen to be 64-bit 使用DependencyWalker,如果碰巧是64位的话,它将显示带有.64覆盖的.exe和.dll图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Visual Studio 2010的32位C ++到64位C ++ - 32-bit C++ to 64-bit C++ using Visual Studio 2010 将我的Visual Studio C ++项目从64位迁移到32位系统 - Moving my Visual Studio C++ project to 32 bit system from 64 bit Visual Studio单元测试32位和64位 - Visual Studio Unit Test 32-bit and 64-bit 具有C#的64位解决方案ASP.NET和一个C ++中的32位项目 - 64-bit solution ASP.NET with C# and one project 32-bit in C++ 如何将C ++项目从32位迁移到64位以支持MAC OS 10.14(Mojave)? - How to migrate C++ project from 32-Bit to 64-Bit to support MAC OS 10.14(Mojave)? 从c / c ++应用程序确定32位操作系统还是64位操作系统 - determine 32-bit OS or 64-bit OS from c/c++ application 从32位C#到64位C ++的PostMessage参数 - PostMessage params from 32-bit C# to 64-bit C++ 从源代码在64位计算机上构建32位mysql c ++连接器 - Building 32-bit mysql c++ connector from source on a 64-bit machine "如何从 32 位 C++ 应用程序启动 64 位 Java 应用程序?" - How to start 64-bit Java application from 32-bit C++ application? 如何使Visual Studio 2012调用本机64位Visual C ++编译器而不是32位x64交叉编译器? - How to make Visual Studio 2012 call the native 64-bit Visual C++ compiler instead of the 32-bit x64 cross-compiler?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM