visual studio 2010 - WIN32 Preprocessor definition in 64bit windows platform -
should change preprocessor definition win32 win64 while migrating visual 2012 c++ projects target 64-bit platforms.
now have built project below settigns
machine (specify target platform) set
/machine:x64
.target environment set
/env x64
in c/c++ project settings -> code generation, struct member allignment 8 bytes
please guide me else project settings should target change.
did mean _win32 , _win64 macros? if specified parameters right (see p.s.) don't need change code. in 64-bit solution must defined _win32 , _win64 both. _win32 macro specifies can use win32 api , _win64 macro specifies compilation 64-bit mode. can use different macro itanium (_m_ia64) , x86-64 (_m_amd64). see details in msdn.
p.s. did choose platform parameters manually? can specify via vs: 1. build menu -> configuration manager. 2. select new in active solution platform. 3. type or select new platform -> x64 , click ok. 4. in "platform" row can simple choose x64.
Comments
Post a Comment