> This is from something I wrote 15 years ago.
Haven't use c since then
Wanted to use it now so I cut and pasted into VS2005 on WinXP
Now I can't seem to get the types OK
GetModuleFileName requires LPWCH for szModulePath
What are the compatible types??
VS2005 has the unicode character set as its default, which is not compatible
with your usage of CHAR*
To solve your problem you have to revert the character set to ASCII.
you do that by setting the 'character set' property in your general project
properties to 'not set'.
Note: if you use precompiled headers, you have to make sure that it is
recompiled after your change, otherwise the compiler will still see the
unicode definition of GetModuleFileName.
Remove only "_nos_pam"