🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: NO_WIN32_LEAN_AND_MEAN - shlobj.h and Indy

#11586
From: Angus
Date: Fri, 30 Jan 2004 00:28
47 lines
2236 bytes
Remy, thanks for your reply.. i can understand in principle what you say.
But what is the practice? The simple test app i have
has this as the header. The same error occurs until i comment out shlobj.h.
Sorry if this seems obvious. Angus.

#ifndef Unit1H
#define Unit1H

#include <IdWinsock2.hpp> //before sholobj as suggested

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <IdBaseComponent.hpp>
#include <IdComponent.hpp>
#include <IdSNTP.hpp>
#include <IdUDPBase.hpp>
#include <IdUDPClient.hpp>

#include "shlobj.h"  // brought in from the cpp
//--------------------------------------------------------------------------
-
class TForm1 : public TForm
{
__published: // IDE-managed Components
        TIdSNTP *IdSNTP1;
private: // User declarations
public:  // User declarations
        __fastcall TForm1(TComponent* Owner);
};


"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:4019946d@newsgroups.borland.com...
>
> "Angus" <aguspickton@yahoo.com> wrote in message
> news:40198ada@newsgroups.borland.com...
>
> > Anybody with a solution please..
>
> Don't include shlobj.h before IdWinsock2.hpp is included is included.
>
>
> Gambit
>
>
Technical Details
Message-ID: <4019a511@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40198ada@newsgroups.borland.com> <4019946d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1d23a55e530c8387
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-29 16:39:45 PST
Reply-To: "Angus" <anguspickton@yahoo.com>
From: "Angus" <aguspickton@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40198ada@newsgroups.borland.com> <4019946d@newsgroups.borland.com>
Subject: Re: NO_WIN32_LEAN_AND_MEAN - shlobj.h and Indy
Date: Fri, 30 Jan 2004 13:28:08 +1300
Lines: 49
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.1165
NNTP-Posting-Host: 218.101.65.41
Message-ID: <4019a511@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075422481 218.101.65.41 (29 Jan 2004 16:28:01 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail