From: Carlos Vazquez on
Hi all,

I've got a working solution of an app that (among other things) reads data from a COMx port with Ginny's Serial Class and writes what it needs to DBF's. I need to transform the same read-write solution to another one without user intervention, so I thought of a service. As the solution I've got is Window based (a modeless DialogWindow is the owner of the serial class) I wonder if it can be done in a true windows service or I will encounter problems.

Any clue out there?

TIA
--
Carlos Vazquez
cva(a)NOSPAMtelefonica.net
From: Ginny Caughey on
Carlos,

Since you're writing a new app here, I'd suggest just using .NET instead for
the serial stuff. (There's a nice serial class already included. How to use
C# from VO:
http://www.elbe-data.se/en/Vulcan/ )

It should be possible to use my serial class as a service, but you'll
probably need to rewrite the event handling so it doesn't use a window's
dispatch method to listen for Windows messages and instead handles its own
message loop. So probably it's just easier to use something more modern. In
fact I'd probably do the whole service in .NET and expose the DBF-handling
functionality in VO via COM.

Another option is taking your VO app and just running it as a scheduled task
rather than a service minus the user interface. You could minimize your
DataWindow but still keep its functionality.

--

Ginny Caughey
www.wasteworks.com




"Carlos Vazquez" <cva(a)NOSPAM~telefonica.net> wrote in message
news:xn0gosgdcl4q2m000(a)news.aioe.org...
> Hi all,
>
> I've got a working solution of an app that (among other things) reads data
> from a COMx port with Ginny's Serial Class and writes what it needs to
> DBF's. I need to transform the same read-write solution to another one
> without user intervention, so I thought of a service. As the solution
> I've got is Window based (a modeless DialogWindow is the owner of the
> serial class) I wonder if it can be done in a true windows service or I
> will encounter problems.
>
> Any clue out there?
>
> TIA
> --
> Carlos Vazquez
> cva(a)NOSPAMtelefonica.net

From: Geoff Schaller on
Carlos,

Like Ginny, I would recommend you use Dot Net and call the functionality
from your VO app. This will be sooooooo much easier and so much more
stable. A service should not have any GUI at all. Nothing. And I am sure
you pull the serial class out of the dialog but what other management
techniques need to accompany this?

You will struggle with all these things in VO.
You will thrive with Dot Net.

Geoff



"Carlos Vazquez" <cva(a)NOSPAM~telefonica.net> wrote in message
news:xn0gosgdcl4q2m000(a)news.aioe.org:

> Hi all,
>
> I've got a working solution of an app that (among other things) reads data from a COMx port with Ginny's Serial Class and writes what it needs to DBF's. I need to transform the same read-write solution to another one without user intervention, so I thought of a service. As the solution I've got is Window based (a modeless DialogWindow is the owner of the serial class) I wonder if it can be done in a true windows service or I will encounter problems.
>
> Any clue out there?
>
> TIA
> --
> Carlos Vazquez
> cva(a)NOSPAMtelefonica.net

From: Carlos Vazquez on
Ginny Caughey wrote:

> It should be possible to use my serial class as a service, but you'll probably need to rewrite the event handling so it doesn't use a window's dispatch method to listen for Windows messages and instead handles its own message loop. So probably it's just easier to use something more modern.

As in any other situation in my life, I do not want to reinvent the wheel: better be practical... (hence my desire to reuse the code I have working with minimal changes, if possible).

> In fact I'd probably do the whole service in .NET and expose the DBF-handling functionality in VO via COM.

I'll investigate it a little further, because the DBF handling is done via ADS in my apps (this one too, of course), and perhaps ADS has everything I need to write that stuff directly from the .NET service.

Thx for the advice.

--
Carlos Vazquez
cva(a)NOSPAMtelefonica.net
From: Carlos Vazquez on
Geoff Schaller wrote:

> A service should not have any GUI at all. Nothing. And I am sure you pull the serial class out of the dialog but what other management techniques need to accompany this?

That is what I was thinking too.

> You will thrive with Dot Net.

See my answer to Ginny.

Thx for answering.
--
Carlos Vazquez
cva(a)NOSPAMtelefonica.net
 | 
Pages: 1
Prev: index CDX on the fly
Next: Toolbar - Details