Visual Studio - Compile for 32 bit vista on 64 bit windows 7 - visual-studio-2010

I am having a little trouble with a small Winform program I have created that uses Sqlite.
I have developed the program on a Windows 7 64 bit machine and compiled it using the Any CPU compile option.
Program uses .NET framework version 4, Vista PC has framework version 4 on it.
The output runs fine on my 64 bit Win 7 PC but on a 32 bit Vista machine it does not run.
I also tried Mixed platforms. Am I missing anything else in my compilation options to ensure this will run on a 32 bit platform?
Regards and thanks
John

Related

Can I run 64 bit dlls on a 32 bit machine?

I have recently converted My visual studio solution to 64 bit from 32 bit. But, I have 1 machine which is running Windows Server 2003 (32 bit).Can I deploy and run these newly built 64 bit dlls on this 32 bit machine?
Basically, the answer is no.
If the underlying hardware is 32-bit, then it definitely won't support 64-bit instructions.
If the hardware is 64-bit (and the OS is just 32-bit), it's possible in theory, but would require the kernel to not only setup a 64-bit code segment, but to also setup 64-bit paging (I think). Since I doubt the 32-bit Windows kernel supports either of these, then it's not possible.
Yes you can using third party software like
http://www.vmware.com/products/
BUT don't expect much from the performance!

Running 32 bits compiled Visual Foxpro App in Win 7 64 bit machine

Good afternoon I have a inherited (from programmer abroad) Visual FoxPro 32 bits app and I have to make it run in a Windows 7 64 bits PC, once I try to run it it displays a message that says ("The version of this program is different from the version of windows you have") . I googled and installed VisualFoxPro 9 from Microsoft page and SP 2 for Visual Fox Pro, but it seems that as longs as the App was compiled in a 32 bits platform it can not run in a 64 bits Machine, any suggestions on that problem would be very appreciated. thanks in advance.
Make sure you have the correct runtimes installed. Do you know which version of VFP it was compiled in?
VFP comes in the following versions, each with their own runtimes:
FPW 2.6a
VFP 3
VFP 5
VFP 6
VFP 7
VFP 8
VFP 9
VFP 9 SP2
If you are sure that you have the correct runtime installed, are you sure it was built in Visual FoxPro and not the older FoxPro 2.X? That would be 16-bit and you would have some trouble running those versions.
dear at first make right click on the setup or install file then go to the properties then compatibility tab and chose click on change settings for all users then select in the compatibility mode in the check box run this program in compatibility mode for select windows xp (service pack 2) and good luck its a tested and successful way

Including sql server compact in desktop install for win 7 32bit and 64bit

I have a desktop app created in vs10 and am using clickonce install. I must include a database with critical info for the program as part of the install. I am compiling for all versions of windows (32 and 64). But as I understand it, if I include the 32 bit sqlce as part of the installation, it will not work on 64 bit installs. Must I include a 32 bit and 64 bit version of the db and test for windows version before accessing the data? Or is there a simpler solution that I am missing?
You can just include all the required files as content with your app, and it will run for any user and on both x86 and x64 platforms. Just follow the instructions here: http://erikej.blogspot.com/2011/02/using-sql-server-compact-40-with.html

Virtual PC (Program Developed on XP Runs on W7 Problem)

I have a developed a C++ application using 32 bit and it create a executable file. This project has uses some external library like window socket 32bit, Qt GUI and boost library. The dll is located at same directory with the executable.
I wonder how can i run this application on window 7.
MY window 7 version is Home Premium 64 bit. Therefore, i cannot install the XP mode from Virtual PC but some one them reported that using Sun virtual box is functional.
I have try to troubleshoot the executable file using program compatibility but the problem doesn't solve.
Any program that can check external dependencies and identified the issues of running my program on window 7 ?
Please help.
Thanks.
64 bit editions of windows can run 32 bit applications fine. You just need to install the 32 bit versions of the needed libraries and it will work.

Using Visual Studio 2005 (32bit) on a Windows 7 64bit machine

I need to use Visual Studio 2005 (C++) on my new laptop - a Sony Vaio with Windows 7 64bit..
I don't need to develop for a 64bit environment, my work is all 32bit, so how can I be sure that I can still develop/debug/test for a 32bit target environment using VS2005 on a 64bit machine....?
What's the best option:
1) Just install VS2005 on Windows 7 64bit and carry on.. (suspect problems with 64bit runtime libs..?)
2) Dual boot the laptop with Windows XP 32bit.
3) Run some kind of Virtual Machine with Windows XP in it... (I don't have a VM yet, but would look into it)
Thanks
The answer is 1) you just need to make sure that you target processor is 32bit. You can develop for 32bit machine on a 64bit machine and vice versa.
After some looking around it looks like you must have up to date service packs. Read http://msdn.microsoft.com/en-us/vstudio/aa948853.aspx if you want to know more.
Visual Studio includes both 32-bit and 64-bit compilers and tools.
You can install VS on Windows 7 x64 and develop 32-bit applications without any problems.
(Just don't do something insane like hard-coding "C:\\Program File (x86)\\")
As the others have pointed out, both the 64 bit and 32 bit versions of VS can target both 64 bit and 32 bit runtime environments. Further you can use either the 64 or 32 bit versions of Windows 7 (obviously the 64 bit version of VS requires 64 bit Windows, but VS 32 bit runs on either).
But you have a second part to your question, debug/test on 32 bit. Depending on the kinds of applications you build, testing under Windows 7 64 bit alone may not be sufficient. You may want to test in a Windows XP virtual machine running under Windows 7, or in certain cases you may need a real 32 bit computer to test on.

Resources