Article View: borland.public.cppbuilder.nativeapi
Article #1650Re: TService Compile Error
From: Jeff
Date: Tue, 26 Jun 2007 17:20
Date: Tue, 26 Jun 2007 17:20
48 lines
3073 bytes
3073 bytes
> That is not enough to diagnose your problem with. It is being caused
> by one of your header files that the .cpp is including. The contents
> of UnitService.cpp are irrelevant since the error is occuring at the
> top of the file immediately after the header includes. Either
> UnitService.h, UnitMainThread.h, or UnitLogThread.h (or any of the
> header that they include themselves) are faulty somewhere. I am
> guessing that it is UnitLogThread.h as it is the last file included in
> UnitService.cpp, but it could very well be any of the other files as
> well.
I can comment out all the includes except UnitService.h and the error still
occurs...here's UnitService.h:
//---------------------------------------------------------------------------
#ifndef UnitServiceH
#define UnitServiceH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SvcMgr.hpp>
#include <vcl.h>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
class TsrvMain : public TService
{
__published: // IDE-managed Components
void __fastcall ServiceExecute(TService *Sender);
void __fastcall ServiceStart(TService *Sender, bool &Started);
void __fastcall ServiceAfterInstall(TService *Sender);
void __fastcall ServiceBeforeUninstall(TService *Sender);
private: // User declarations
bool __fastcall IsTime();
public: // User declarations
WORD wHour;
WORD wMin;
bool boolLogUsers;
String strEmailRecip;
String strServer;
__fastcall TsrvMain(TComponent* Owner);
TServiceController __fastcall GetServiceController(void);
friend void __stdcall ServiceController(unsigned CtrlCode);
};
//---------------------------------------------------------------------------
extern PACKAGE TsrvMain *srvMain;
//---------------------------------------------------------------------------
#endif
Technical Details
Message-ID:
<46814b2e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46802aa8$1@newsgroups.borland.com> <4680321e$1@newsgroups.borland.com> <468033ac$1@newsgroups.borland.com> <4680497f$1@newsgroups.borland.com> <468122e3$1@newsgroups.borland.com> <46814544$2@newsgroups.borland.com> <46814809@newsgroups.borland.com> <4681498b$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: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46802aa8$1@newsgroups.borland.com> <4680321e$1@newsgroups.borland.com> <468033ac$1@newsgroups.borland.com> <4680497f$1@newsgroups.borland.com> <468122e3$1@newsgroups.borland.com> <46814544$2@newsgroups.borland.com> <46814809@newsgroups.borland.com> <4681498b$1@newsgroups.borland.com> Subject: Re: TService Compile Error Date: Tue, 26 Jun 2007 11:20:45 -0600 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 206.104.31.90 Message-ID: <46814b2e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182878510 206.104.31.90 (26 Jun 2007 10:21:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail