views:

55

answers:

3

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

+2  A: 

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.

Charles Beattie
thanks... will the target machine also need those service packs - or that just for the dev machine to compile properly?
Krakkos
Right click on the project as select properties. Click on the linker options. Search through everything (Advanced?) until you find something called Target Machine or similar. Make sure it has a value like: MachineX86 (/MACHINE:X86).
Charles Beattie
"will the target machine also need those service packs"? In simple cases you should be fine.(I prefer to statically link libs to avoid having to distribute a runtime.)
Charles Beattie
A: 

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)\\")

SLaks
A: 

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.

JonnyBoats