win32 32bit to x64 code problems

This is a discussion on win32 32bit to x64 code problems within the Game Programming forums, part of the General Programming Boards category; Im trying to convert a basic "game" engine from win32 (32bit) to x64 to fully support 64bit. This engine was ...

win32 32bit to x64 code problems

Im trying to convert a basic "game" engine from win32 (32bit) to x64 to fully support 64bit. This engine was made for learning c++ in my high college (to visualy create standard games). But the problem is when i compile this code in x64 it gives some errors that i cannot solve because i dont know that mutch of c++. (The code was created in visual studio 2010 ).
I'm trying to recreate the engine so that it can be used for 32bit and 64bit applications

The code can be found her (didnt know how to upload all the different files to this site:Fadaria.rar

For the first one, if my Hungarian decoding skills are up-to-date, LPDWORD is a pointer to a DWORD. DWORD_PTR is presumably not quite the same as DWORD (IIRC it's a DWORD that is masquerading as a pointer itself). You want to create a DWORD variable.

For the other two, UINT and UINT_PTR aren't going to be the same, so you'll need to be careful which one is which.