home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Plus! (NZ) 2001 June
/
HDC50.iso
/
Runimage
/
Delphi50
/
Bin
/
DCLSTD50.BPL
/
0
/
RCDATA
/
CPPSERVICE
next >
Wrap
Text File
|
1999-08-11
|
2KB
|
67 lines
#include <SysUtils.hpp>
#include <SvcMgr.hpp>
#pragma hdrstop
#define Application Svcmgr::Application
USERES("%s.res");
//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
try
{
Application->Initialize();
Application->Run();
}
catch (Exception &exception)
{
Sysutils::ShowException(&exception, Sysutils::ExceptAddr());
}
return 0;
}
|//---------------------------------------------------------------------------
#include "%s.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
T%s *%1:s;
//---------------------------------------------------------------------------
__fastcall T%1:s::T%1:s(TComponent* Owner)
: T%s(Owner)
{
}
PServiceController __fastcall T%1:s::GetServiceController(void)
{
return (PServiceController) ServiceController;
}
void __stdcall ServiceController(unsigned CtrlCode)
{
%1:s->Controller(CtrlCode);
}
//---------------------------------------------------------------------------
|//---------------------------------------------------------------------------
#ifndef %sH
#define %0:sH
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SvcMgr.hpp>
#include <vcl.h>
//---------------------------------------------------------------------------
class T%s : public T%s
{
__published: // IDE-managed Components
private: // User declarations
public: // User declarations
__fastcall T%1:s(TComponent* Owner);
PServiceController __fastcall GetServiceController(void);
friend void __stdcall ServiceController(unsigned CtrlCode);
};
//---------------------------------------------------------------------------
extern PACKAGE T%1:s *%1:s;
//---------------------------------------------------------------------------
#endif
|