🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TService Compile Error

#1740
From: Bob Gonder
Date: Mon, 25 Jun 2007 23:07
28 lines
1981 bytes
Jeff wrote:

>Here's part of UnitService.h:
>    //---------------------------------------------------------------------------
>    extern PACKAGE TsrvMain *srvMain;
>    //---------------------------------------------------------------------------

>UnitService.cpp:
>    //---------------------------------------------------------------------------
>    #pragma package(smart_init)
>    #pragma resource "*.dfm"
>
>    TsrvMain *srvMain;
In the header this is listed as being a PACKAGE, but here you leave that off.
>
>I get three errors on the pointer declaration (TsrvMain *srvMain):
>
>    [C++ Error] UnitService.cpp(8): E2141 Declaration syntax error

Which line is (8) ?
From your other post, line 8 seems to be blank.

TsrvMain *srvMain; seems to be (15)

>    [C++ Error] UnitService.cpp(15): E2090 Qualifier 'TsrvMain' is not a 
>class or namespace name
>    [C++ Error] UnitService.cpp(15): E2040 Declaration terminated 
>incorrectly
Technical Details
Message-ID: <j8i0835n4iuh6kbhep8slq2ouf96v601am@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46802aa8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e4ab627349eb1efd
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: TService Compile Error
Date: Mon, 25 Jun 2007 16:07:40 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <j8i0835n4iuh6kbhep8slq2ouf96v601am@4ax.com>
References: <46802aa8$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.84.229
X-Trace: newsgroups.borland.com 1182812858 69.69.84.229 (25 Jun 2007 16:07:38 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail