Ozkan Sezer wrote: > On Thu, Mar 19, 2009 at 8:04 PM, Vincent R. <foru...@smartmobili.com> wrote:
>> However you are wrong about DWORD definition it has always be defined >> like this : >> >> typedef unsigned long DWORD, *PDWORD, *LPDWORD; >> >> at least windows. >> > > A DWORD on windows is an unsigned 32 bit integer, therefore even > if you use long, it won't matter because long is 32 bits for both win32 > and for win64. But you will get type-safety or conversion warnings if you mix long and int. Even though the size is the same, the types are not directly compatible. Case in point: http://cygwin.com/ml/cygwin/2009-03/threads.html#00492 cheers, DaveK