Board index » cppbuilder » difference between Service and Service Application

difference between Service and Service Application

What is the difference between File->New->Service and File->New->Service
Application?

Chris

 

Re:difference between Service and Service Application


Chris:

A "Service Application" is the actual program that runs when invoked by
Control Panel.  It contains the stubs necessary to interact properly with
the
Control Panel.  At design-time, it resembles a TDataModule that you can
drop new "Services" into.  So basically, a Service Application can contain
(read: host) multiple "Services".  And each Service can implement its own
functionality.

This is from the BCB online help:

  Service Application - Creates a new NT service application. Once you have
  created a service application, You will see a window in the designer that
  corresponds to a service (TService). Implement the service by setting its
  properties and event handlers in the Object Inspector.

  Service - Adds a new service to an existing NT service application. Do not
add
  services to an application that is not a service application. While a
TService object
  can be added, the application will not generate the requisite events or
make the
  appropriate Windows calls on behalf of the service.

I hope this explanation helps,
-Jim Rofkar.
jrof...@cros.net

Quote
"Chris Martin" <cmar...@bitwise.com> wrote in message

news:39A301A6.9E885D0F@bitwise.com...
Quote
> What is the difference between File->New->Service and File->New->Service
> Application?

> Chris

Re:difference between Service and Service Application


Errrm ... sorry James, but services have nothing whatsoever to do with
Control Panel!

  Max.

-----------------------------------------

"James D. Rofkar" <jrof...@cros.net> wrote in message
news:39a5f3a1_2@dnews...

Quote
> Chris:

> A "Service Application" is the actual program that runs when invoked by
> Control Panel.  It contains the stubs necessary to interact properly with
> the
> Control Panel.  At design-time, it resembles a TDataModule that you can
> drop new "Services" into.  So basically, a Service Application can contain
> (read: host) multiple "Services".  And each Service can implement its own
> functionality.

> This is from the BCB online help:

>   Service Application - Creates a new NT service application. Once you
have
>   created a service application, You will see a window in the designer
that
>   corresponds to a service (TService). Implement the service by setting
its
>   properties and event handlers in the Object Inspector.

>   Service - Adds a new service to an existing NT service application. Do
not
> add
>   services to an application that is not a service application. While a
> TService object
>   can be added, the application will not generate the requisite events or
> make the
>   appropriate Windows calls on behalf of the service.

> I hope this explanation helps,
> -Jim Rofkar.
> jrof...@cros.net

Other Threads