Re: LPDWORD and C++
That might not do what the OP wants, since in Windows code, "long" is 32 bits even in 64-bit machines, whereas in the wide *nix world that is not guaranteed. Porting an application is not as easy as find & replace (though if all coders were nice, it would be). Most likely you are using Windows APIs and you'll have to either find some equivalent POSIX/Linux/whatever call or use winelib. This last option might seem dirty, but it means you can be up and running fast, then have all the time in the world to port your application in The Right Way (tm). IIrc, when Apple moved from the M68K to the PPC, big parts of the OS ran on a 68K emulator until they were finally able to port all of it.
May the Source be with you.