Board index » cppbuilder » How to use tform in TServiceApplication?
|
Juan Diego Garcés
CBuilder Developer |
|
Juan Diego Garcés
CBuilder Developer |
How to use tform in TServiceApplication?2006-03-01 09:19:24 PM cppbuilder109 I try to use a TForm in a service application, but I get always an exception error. I read that in a service applic. a TForm cannot be used, is it true? If it is true, how can I add a Form to a service? Thanks Juan Diego Garcés |
| Vladimir Stefanovic
CBuilder Developer |
2006-03-01 09:56:22 PM
Re:How to use tform in TServiceApplication?QuoteI read that in a service applic. a TForm cannot be used, is it true? QuoteIf it is true, how can I add a Form to a service? Look at ControlService() API. -- Best Regards, Vladimir Stefanovic |
| Remy Lebeau (TeamB)
CBuilder Developer |
2006-03-02 02:56:09 AM
Re:How to use tform in TServiceApplication?
"Juan Diego Garcés" < XXXX@XXXXX.COM >wrote in message
QuoteI try to use a TForm in a service application QuoteI get always an exception error. cannot be used directly in threads. QuoteI read that in a service applic. a TForm cannot be used, is it true? QuoteIf it is true, how can I add a Form to a service? {smallsort} |
| Juan Diego Garcés
CBuilder Developer |
2006-03-02 04:06:33 PM
Re:How to use tform in TServiceApplication?
I want to use a TForm to receive broadcast messages. I wrote another
application that send broadcast messages to other applications to notify there is an alarm in a PLC, I have two applications that have to receive this message, the first one is a SCADA applic that has to show in a synoptic image the alarm, and the second one is the service that has to beep. I write a service because the user has to be notified even the SCADA applic is stopped. In fact this applic has to run constantly. Thanks. "Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >a écrit dans le message de Quote
|
| Vladimir Stefanovic
CBuilder Developer |
2006-03-02 04:22:20 PM
Re:How to use tform in TServiceApplication?
ControlService() API can be used to send *custom ID* to the
service application from a TForm. The service can then receive that *custom ID* and perform some task (beep). Best Regards, Vladimir Stefanovic |
| Remy Lebeau (TeamB)
CBuilder Developer |
2006-03-02 06:15:40 PM
Re:How to use tform in TServiceApplication?
"Juan Diego Garcés" < XXXX@XXXXX.COM >wrote in message
QuoteI want to use a TForm to receive broadcast messages. Window messages cannot be passed between different desktops. QuoteI wrote another application that send broadcast messages to other Then have either the broadcasting application notify the service directly, or else have the receiving application notify the service when itself is notified. QuoteI write a service because the user has to be notified even the Gambit |
