Put a
| CODE |
| #define WIN32_LEAN_AND_MEAN |
above
| CODE |
| #include <Windows.h> |
There are a lot of
| CODE |
| #ifndef WIN32_LEAN_AND_MEAN |
type of deals in Windows.h, so this will prevent inclusion of the MFC libraries. (Obviously you do not want to do this if you use MFC)
Yeah, I didn't know what it was when I first started Windows programming. It sounds pretty cool: WIN32_LEAN_AND_MEAN. :D
what does WIN32_LEAN_AND_MEAN do? i've seen it in code...
| QUOTE (Stuy GM @ Sep 6 2003, 05:43 AM) |
| what does WIN32_LEAN_AND_MEAN do? i've seen it in code... |
Like he just said, it keeps the compiler from including MFC libraries. It decreases file size.