Article View: borland.public.cppbuilder.nativeapi
Article #11643Re: STRICT or not?
From: Ed Mulroy [TeamB]
Date: Tue, 27 Jan 2004 15:25
Date: Tue, 27 Jan 2004 15:25
22 lines
1896 bytes
1896 bytes
The macro STRICT alters how the Windows header files are expanded. It was added to support later versions of Windows. If you your code is also intended to be compiled for pre-1992 Windows < 3.0 came out then do not define STRICT. The major effect is of STRICT is to cause the Windows header files to be expaned with function prototypes that have argument lists. Unlike C, C++ requires function prototypes so if STRICT is not defined you will see more casts in the code to subvert compiler checks. . Ed > Martin Golm wrote in message > news:40167C39.252A09F9@gmx.de... > > When writing a WinAPI-only application, should I define > STRICT or not? What is the difference between defining > STRICT and not defining it? OWL applications have STRICT > defined as default (but that's probably just to match the > definitions of ::WndProc and TWindow::WndProc). > Maybe some of the older Windows programmers can shed > a bit of light to me.
Technical Details
Message-ID:
<401682fa@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40167C39.252A09F9@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7e96f3707ebeda3a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-27 07:27:28 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <40167C39.252A09F9@gmx.de> Subject: Re: STRICT or not? Date: Tue, 27 Jan 2004 10:25:33 -0500 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <401682fa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1075217146 24.74.175.102 (27 Jan 2004 07:25:46 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail