Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Events between to .net applications?

Hi Experts,

Is it possible to have event raised in a .net app and have a different application handle the events?

I'm trying to do TWAIN scanning in a WPF application but WPF and TWAIN do not seem to work well together.  So I've been told to put the TWAIN scanning in a separate process then let the WPF app somehow get the images from the scanner.  

thanks
0
OFGemini
Asked:
OFGemini
1 Solution
 
Michael FowlerSolutions ConsultantCommented:
You could use a file and place the required event information there. Use the FileSystemWatcher to monitor the file from the WPF application and use a mutex to lock the file while in use. This method would allow you create a producer/consumer queue to manage the process.

Here are some links you may find helpful

http://msdn.microsoft.com/en-us/library/ch2s8yd7%28v=vs.71%29.aspx
http://msdn.microsoft.com/en-us/library/system.threading.mutex.aspx
http://msdn.microsoft.com/en-us/library/yy12yx1f.aspx

Michael
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now