🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11946

Re: Finding the name of the Program Files directory

#11946
From: Fernando
Date: Thu, 08 Jan 2004 15:48
22 lines
1685 bytes
On Wed, 7 Jan 2004 10:54:08 -0800, "Remy Lebeau \(TeamB\)"
<gambit47.no.spam@no.spam.yahoo.com> wrote:


>> #include <vcl.h>
>> #include <windows.h>
>> #include <shlobj.h>
>> #pragma hdrstop
>
>You should not include the Windows headers before the #pragma hdrstop
>statement.  That prevents the project from being able to use the VCL's
>default precompiled headers correctly (if you have PCH enabled, that is).
>Include them after the statement instead:
>
>    #include <vcl.h>
>    #pragma hdrstop
>    #include <windows.h>
>    #include <shlobj.h>
>

I though I was suposed to put header files that don't change very often before
the pagma. Is this incorrect?
Technical Details
Message-ID: <3tuqvv4mo9148sc5pvns4noijsuc9j6sbb@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <8rtnvvs0ekdahr4ti11p9tbhpvvek5taju@4ax.com> <3ffc198e$1@newsgroups.borland.com> <o5bovvo2ruigqkkvpvh35h8p4g7479hm54@4ax.com> <3ffc546d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8234f234f0df84a1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-08 08:19:25 PST
From: Fernando  <frr@easyjob.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Finding the name of the Program Files directory
Date: Thu, 08 Jan 2004 16:48:46 +0100
Message-ID: <3tuqvv4mo9148sc5pvns4noijsuc9j6sbb@4ax.com>
References: <8rtnvvs0ekdahr4ti11p9tbhpvvek5taju@4ax.com> <3ffc198e$1@newsgroups.borland.com> <o5bovvo2ruigqkkvpvh35h8p4g7479hm54@4ax.com> <3ffc546d$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.9/32.560
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 217.127.66.80
X-Trace: newsgroups.borland.com 1073576922 217.127.66.80 (8 Jan 2004 07:48:42 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail