Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,

Currently i am running an application in 32 bit and if i want to upgrade to 64 bit, what changes should i make in my application.



Regards,
Ranjith
Posted

This is one of a lot of tips available on google:
20 issues of porting C++ code on the 64-bit platform[^]
 
Share this answer
 
Let the compiler work for you and interpret any warning as error :)

Of course, not any error can be warned, for example:
C++
void f(void* p)
{
  DWORD dwAddress((DWORD) p); // would cut the value to its low part without any warning :)
  // DWORD_PTR dwAddress(reinterpret_cast<dword_ptr>(p)); // correct: the adapted type is using
  cout << dwAddress;
}</dword_ptr>
 
Share this answer
 
For MFC application,

go to configuration manager and change the setting to win32 to x64.


Framework can take care of converting 32bit application to 64 bit application.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900