Re: How to determine if compiling a Win32 versus MFC project?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Danny,
Welcome to MSDN Newsgroup!

We can define MFC_ENABLED by ourself, just like:
#ifdef _MFC_VER
#define MFC_ENABLED
#endif

I hope the above information is helpful for you.Thanks !

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security

--------------------
Thread-Topic: How to determine if compiling a Win32 versus MFC project?
thread-index: AcZC7bFJ31twzakYTDyjLZmGmvQruw==
X-WBNR-Posting-Host: 192.189.172.32
From: =?Utf-8?B?RGFubnkgUHJlc3NsZXk=?= <DannyPressley@xxxxxxxxxxxxxxxx>
References: <E97CF3D3-DE55-4E2E-BAD6-DA27D44A1ADE@xxxxxxxxxxxxx>
<1141847244.064429.268600@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: How to determine if compiling a Win32 versus MFC project?
Date: Wed, 8 Mar 2006 12:20:07 -0800
Lines: 7
Message-ID: <DAC40CA0-096C-45C6-9A42-A374D74A3A63@xxxxxxxxxxxxx>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
Newsgroups: microsoft.public.vc.mfc
Path: TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA03.phx.gbl microsoft.public.vc.mfc:468697
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
X-Tomcat-NG: microsoft.public.vc.mfc

Thanks Ajay. I found info on _MFC_VER earlier today and believe it will
work,
but I don't feel its intuitive to others who may review the code. I was
hoping there was a straight forward define like MFC_ENABLED.

Thanks again,
Danny



.