|
Prev: Edit Control
Next: Visual Studio's 2005 help?
From: stevensmith1010 on 7 May 2008 10:14 Hi, I am trying to port my VC++ application to a x64 compatible platform. Since most of my code makes use of int's ...( I noticed that an int is 32bits long on x64 mode as well)....I want to be able to use 64bit ints in my new code.... I was wondering if there is some option or setting in VC++ tht allows me to treat int's as 64 bit longs or 64 bit integers? Thanks for your valuable suggestions guys.
From: David Lowndes on 7 May 2008 10:37 >I am trying to port my VC++ application to a x64 compatible platform. > >Since most of my code makes use of int's ...( I noticed that an int is >32bits long on x64 mode as well)....I want to be able to use 64bit >ints in my new code.... I was wondering if there is some option or >setting in VC++ tht allows me to treat int's as 64 bit longs or 64 bit >integers? None that I know of. It's implicit in Win64 that ints are still 32-bit. If you have specific code that would benefit from having 64 bit values, why not use the __int64 type (or have a suitable redefinition for portability). Dave
From: stevensmith1010 on 7 May 2008 10:45 On May 7, 10:37 am, David Lowndes <Dav...(a)example.invalid> wrote: > >I am trying to port my VC++ application to a x64 compatible platform. > > >Since most of my code makes use of int's ...( I noticed that an int is > >32bits long on x64 mode as well)....I want to be able to use 64bit > >ints in my new code.... I was wondering if there is some option or > >setting in VC++ tht allows me to treat int's as 64 bit longs or 64 bit > >integers? > > None that I know of. It's implicit in Win64 that ints are still > 32-bit. > > If you have specific code that would benefit from having 64 bit > values, why not use the __int64 type (or have a suitable redefinition > for portability). > > Dave Hi Dave, the problem is I have a very huge code and to manually go and change to __int64 would be very tedious....so thats why was thinking if there are some kind of compiler switches to force ints as __int64's...?
From: David Lowndes on 7 May 2008 12:24 >the problem is I have a very huge code and to manually go and change >to __int64 would be very tedious....so thats why was thinking if there >are some kind of compiler switches to force ints as __int64's...? I'm not aware of one. Dave
From: Tim Roberts on 8 May 2008 02:40
stevensmith1010(a)gmail.com wrote: > >Hi Dave, >the problem is I have a very huge code and to manually go and change >to __int64 would be very tedious....so thats why was thinking if there >are some kind of compiler switches to force ints as __int64's...? Nope. In an intuitive world, "long" would be 64 bits in a 64-bit compilation, as it is in gcc, but Microsoft decided we were all too stupid to handle that. In my opinion, that was a huge mistake. -- Tim Roberts, timr(a)probo.com Providenza & Boekelheide, Inc. |