On Thu, Jul 2, 2009 at 9:39 AM, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
horace wrote:

i will also try to find out if i can do something like -M with the visual c++ compiler.

Actually, I meant -E (the one that outputs the results
of preprocessing).



i got it working:

    ctypedef void *PVOID
    ctypedef PVOID HANDLE
    ctypedef HANDLE HICON
    #ctypedef HANDLE HINSTANCE # doesn't work!
    ctypedef long HINSTANCE # does work!
    ctypedef HINSTANCE HMODULE



argh... why didn't i simply experiment a bit with different types sooner instead of desperately looking for the correct HINSTANCE definition in the windows sdk. :)