471,350 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

BInd to events from win service from desktop application

bz
Hi,

I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.

Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.

Can anyone point me to the right direction to do this?

I will use filesystemwatcher to detect when file changes, but don't
know from there

I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET

Any advice or suggestion is appreciated.

Thank you
Jun 27 '08 #1
4 1551
On Apr 28, 8:02 am, bz <bzam...@gmail.comwrote:
Hi,

I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.

Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.

Can anyone point me to the right direction to do this?

I will use filesystemwatcher to detect when file changes, but don't
know from there

I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET

Any advice or suggestion is appreciated.

Thank you
One easy approach is to start off a new process(desktop app) with
appropriate arguments everytime the file changes.
Jun 27 '08 #2
bz
Hi,

This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.

It might not be started for days, for example

Any other thought?

On Apr 28, 6:14*pm, parez <psaw...@gmail.comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail.comwrote:


Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatcher to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you

One easy approach is to start off a new process(desktop app) *with
appropriate arguments everytime the file changes.- Hide quoted text -

- Show quoted text -
Jun 27 '08 #3
On Apr 29, 10:25 am, bz <bzam...@gmail.comwrote:
Hi,

This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.

It might not be started for days, for example

Any other thought?

On Apr 28, 6:14 pm, parez <psaw...@gmail.comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail.comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatcher to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) with
appropriate arguments everytime the file changes.- Hide quoted text -
- Show quoted text -
then you will have to use some better form of IPC .. named pipes,
remoting or MSMQ
http://www.google.com/search?hl=en&r...et&btnG=Search

Jun 27 '08 #4
bz
Thank you, I'll check them

On May 1, 5:28*pm, parez <psaw...@gmail.comwrote:
On Apr 29, 10:25 am, bz <bzam...@gmail.comwrote:


Hi,
This doesn't works, because I don't want to desktop process to open
everytime.
The service must do what it is designed to do, and the desktop is just
a monitor, users can choose to start when they want to see the status
of service processing.
It might not be started for days, for example
Any other thought?
On Apr 28, 6:14 pm, parez <psaw...@gmail.comwrote:
On Apr 28, 8:02 am, bz <bzam...@gmail.comwrote:
Hi,
I need to create a win service that lookup a file ina folder, ands
when received, read it then fir an event.
Then I need a desktop app that, when runs, bind to the event from the
win service, and when the event fires, read the eventarg data and do
some processing with.
Can anyone point me to the right direction to do this?
I will use filesystemwatcher to detect when file changes, but don't
know from there
I know how to do this with COM (the service is a com obj defining an
interface and the desktop app implements that interface and bind to
the running service), but not sure how to do it in NET
Any advice or suggestion is appreciated.
Thank you
One easy approach is to start off a new process(desktop app) *with
appropriate arguments everytime the file changes.- Hide quoted text -
- Show quoted text -

then you will have to use some better form of IPC .. named pipes,
remoting or MSMQ

http://www.google.com/search?hl=en&r...&q=Compare...- Hide quoted text -

- Show quoted text -
Jun 27 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Chakkaradeep | last post: by
3 posts views Thread by Saran | last post: by
3 posts views Thread by Lubomir | last post: by
7 posts views Thread by Ahmed Perlom | last post: by
4 posts views Thread by Don Curtis | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.