#define NOMINMAX #define WIN32_LEAN_AND_MEAN #include <windows.h>
was how we used to do this.
Don’t forget about
#undef near #undef NEAR #undef far #undef FAR
Big wtf moment running into those porting from Linux to Windows.
Oh man, near and far pointers. Things we don’t really need to worry about anymore…
Are there any projects that wrap Win32 so you don’t get any Windows.h pollution? (And provide nice RAII types for everything?)
MFC does a lot of what you’re asking, and has been supported by Microsoft since the 90s.
CNoThanks :)
CNoThanks
was how we used to do this.
Don’t forget about
Big wtf moment running into those porting from Linux to Windows.
Oh man, near and far pointers. Things we don’t really need to worry about anymore…
Are there any projects that wrap Win32 so you don’t get any Windows.h pollution? (And provide nice RAII types for everything?)
MFC does a lot of what you’re asking, and has been supported by Microsoft since the 90s.
CNoThanks:)