Article View: borland.public.cppbuilder.nativeapi
Article #7393Re: How can a Applicantion work as a Service?
From: Remy Lebeau (TeamB)
Date: Thu, 03 Feb 2005 07:56
Date: Thu, 03 Feb 2005 07:56
19 lines
1906 bytes
1906 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message news:4201c82d$1@newsgroups.borland.com... > but I find that Borland SocketServer which provided by > Borland C++builder can work as Service and work as > a single program TServerSocket is an individual component, not a project of its own. Writing a project for a standalone application and writing a project for a service use very different architectures. For what you ask, you would have to write project-neutral code and then include it into both projects. For that, you can use a TDataModule, for instance. Put all of your shared code into a TDataModule that has no concept of what kind of project it is being used with, and then you can include the DataModule into both an application project and a service project. Gambit
Technical Details
Message-ID:
<4201d87e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4200af09$1@newsgroups.borland.com> <4200bfe5@newsgroups.borland.com> <4201c82d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,591b0fbb1373b772 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4200af09$1@newsgroups.borland.com> <4200bfe5@newsgroups.borland.com> <4201c82d$1@newsgroups.borland.com> Subject: Re: How can a Applicantion work as a Service? Date: Wed, 2 Feb 2005 23:56:43 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4201d87e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107417214 68.69.17.41 (2 Feb 2005 23:53:34 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail