View Full Version: How to get rid of stupid MFC includes

C++ Learning Community > C++ Tips > How to get rid of stupid MFC includes


Title: How to get rid of stupid MFC includes
Description: WIN32_LEAN_AND_MEAN


TheHawgMaster - August 16, 2003 07:38 PM (GMT)
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)

Dragon - August 18, 2003 02:44 AM (GMT)
Yeah, I didn't know what it was when I first started Windows programming. It sounds pretty cool: WIN32_LEAN_AND_MEAN. :D

Stuy GM - September 6, 2003 05:43 AM (GMT)
what does WIN32_LEAN_AND_MEAN do? i've seen it in code...

Shadow of the Moon - September 6, 2003 11:56 AM (GMT)
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.

Stuy GM - September 15, 2003 09:33 AM (GMT)
oh, ok cool, thx




* Hosted for free by InvisionFree