开发者

Migration of 32 bit OS Vc++ application to 64 bit OS Vc++ application

开发者 https://www.devze.com 2023-01-05 01:25 出处:网络
i have an Vc++ application developed in VC6 . currently it supports 32 bit Operation systems. My requirement to covert this application to support 64 bit Operating systems (like windows7 , Windoes 200

i have an Vc++ application developed in VC6 . currently it supports 32 bit Operation systems. My requirement to covert this application to support 64 bit Operating systems (like windows7 , Windoes 2008 ser开发者_JAVA技巧ver and etc..).

what are easiest way / steps / procedure to migrate such of application?


In practice, if you use every data type as it should, there shouldn't be a problem. Typical errors that are made, are:

  • using [unsigned] long instead of size_t when referring to sizes
  • subtracting pointers and assigning the result to a long (should be ptrdiff_t or something like this)
  • converting pointers to long or long to pointers

The page http://msdn.microsoft.com/en-us/library/aa384198%28v=VS.85%29.aspx on Microsoft's MSDN site gives a list of important things to think about when going to 64-bit.

Hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号