A couple of recent articles on the CodeProject cover the porting of applications to 64-bit. It does mention the datatype problem where the size changes.
The first one is Problems Of Testing 64-bit Applications. The second is 20 issues of porting C++ code on the 64-bit platform.
The second one is the more comprehensive and provides practical solutions to the problem.