|
# Lines |
Steve Gill
wrote
on 18-Sep-2011:
I have some Delphi applications that have their own Windows services. Being new to the whole Mac OS thing, I don't know whether or not the Mac OS has the equivalent of a Windows service. Supposing that it does, will I be able to write services in FireMonkey for both Windows and Mac OS, using compiler directives to separate platform specific code? Is it actually possible to write services with FireMonkey?
Thanks.
Steve
|
17 |
Kim Madsen
replied
on 19-Sep-2011:
Hi,
A Windows service generally cant have a built in user interface. In earlier
versions of windows, you could state that the service was allowed to
"interact with desktop" and thus show a GUI, but that has been disallowed in
later versions of Windows (since Vista if I remember correctly).
|
102 |
Matthew Jones
replied
on 19-Sep-2011:
Yes, but can you use Delphi + FireMonkey to make such a service? Sure, you can't do
the UI parts, but "FireMonkey" is the cross-platform tool in Delphi. I too am very
interested in this ability.
/Matthew Jones/
|
8 |
Kim Madsen
replied
on 19-Sep-2011:
Hi,
Firemonkey is a set of classes for GUI development primarely.
Its not a windows service thing. Delphi already supports creating Windows
service projects, and that will continue to be there.
However as I explained services are not Unix (OSX) concepts, but only exists
|
46 |
Matthew Jones
replied
on 19-Sep-2011:
Yes, I think that is all understood. But if you have Delphi XE2, and want to write
an app to run on the Mac, you have to start with "FireMonkey HD" project. So, you
now have a form. Can we discard that and make a service? Does TServiceApplication
work in this mode? Where is the sample.
I'll also pick up daemons, which you didn't mention, and I am pretty sure are
|
22 |
Kim Madsen
replied
on 19-Sep-2011:
Hi,
No.. you just start out with a console application, and specify target as
OSX.
TServiceApplication wont work on OSX (its Windows only). Console
applications will.
|
95 |
Matthew Jones
replied
on 20-Sep-2011:
Thanks for that. Just got in, so will read in detail later, but sounds positive.
/Matthew Jones/
|
4 |
Steve Gill
replied
on 19-Sep-2011:
Hi Kim,
(snip)
None of the services I have developed interact with the desktop or have any sort of GUI.
(snip)
Yes, I have separate GUI apps which communicate with the services. I didn't know that FM is only used for GUI applications. As it is supposedly a cross-platform tool for creating applications that run on both Windows and Mac OS, I assumed it could also be used to do non-visual stuff as well.
(snip) Ahh, ok. I didn't know that you could that with just Delphi - that sounds like what I'm after.
Thanks for your help.
|
59 |