Discussion:
Porting 32 bit applications to 64 bit in Visual Studio 2005
(too old to reply)
r***@gmail.com
2008-04-27 16:07:08 UTC
Permalink
Hi all,
I am trying to convert my 32 bit application in C++ to a 64 bit
compatible platform on Visual Studio 2005.

I was wondering if you could guide me in this matter. I know that we
have to change variables etc appropritely and compile it in x64 mode.

If I am working on a 32-bit machine how do i test and basically run
the 64bit version on my machine? IS it possible to do so? ( running
the 64 bit converted code on a 32bit machine...)

Im using macros to make it compatible in x64.

Any guidance is really appreciated .... Thank you all for taking the
time to help me!
Carl Daniel [VC++ MVP]
2008-04-27 18:48:20 UTC
Permalink
Post by r***@gmail.com
Hi all,
I am trying to convert my 32 bit application in C++ to a 64 bit
compatible platform on Visual Studio 2005.
I was wondering if you could guide me in this matter. I know that we
have to change variables etc appropritely and compile it in x64 mode.
If I am working on a 32-bit machine how do i test and basically run
the 64bit version on my machine? IS it possible to do so? ( running
the 64 bit converted code on a 32bit machine...)
You don't. You can build for x64 on a 32-bit machine, but you can't run it.
You'll need a 64-bit machine to test your code. Even if you're running
32-bit OS, if your processor is x64 capable, you may be able to create a
64-bit virtual machine on it using VMWare workstation (I'm pretty sure that
you cannot do it using Microsoft Virtual PC).

-cd
r***@gmail.com
2008-04-27 22:55:19 UTC
Permalink
On Apr 27, 2:48 pm, "Carl Daniel [VC++ MVP]"
Post by r***@gmail.com
Hi all,
I am trying to convert my 32 bit application in C++ to a 64 bit
compatible platform on Visual Studio 2005.
I was wondering if you could guide me in this matter. I know that we
have to change variables etc appropritely and compile it in x64 mode.
If I am working on a 32-bit machine how do i test and basically run
the 64bit version on my machine? IS it possible to do so? ( running
the 64 bit converted code on a 32bit machine...)
You don't.  You can build for x64 on a 32-bit machine, but you can't run it.
You'll need a 64-bit machine to test your code.  Even if you're running
32-bit OS, if your processor is x64 capable, you may be able to create a
64-bit virtual machine on it using VMWare workstation (I'm pretty sure that
you cannot do it using Microsoft Virtual PC).
-cd
Thanks a lot cd fo the information.....! I really apprciate it.

Loading...