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: 205
  • Last Modified:

Application porting(Creating a middle man application between server and identix)

I have a problem for which I have no clue as to where to start.
Here it is:
I send an image from my PDA to a remote desktop computer (server) for processing. The image upon reaching the desktop is saved to a default folder. What I need to do is take this image from the folder, send it to an image processing application for processing, get the outcome of the processing and send this to the PDA. Hence my middle man application should do this. However, I have no clues or pointers as to where to begin or look. Can you please help? Thanks
0
fin_comp
Asked:
fin_comp
  • 3
  • 2
1 Solution
 
craigwardmanCommented:
you could make a .NET app to do this, since .NET has the FileSystemWatcher object..

You can the set FileSystemWatcher to monitor the directory where the files from the PDA will appear.. When a file appears, assuming the image processing software take command line arguments, you can open the software specifying the file to process..

Upon completion you can move the file into another folder or simply send it back to the PDA and delete it (just dont process the file twice!)

HTH
0
 
fin_compAuthor Commented:
I know I have to make use of the process class and filesystemwatcher in c# to facilitate running the software from command line thanks to your help!!!. What if my application doesn't run in a command line/ prompt mode? Is there a way in .NET to facilitate this?
0
 
andre6bCommented:
You can use something sophisticated as MS BizTalk, which was specially made to watch all sources of incoming data.  Also, your own application could run as a service...
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
craigwardmanCommented:
sorry I missed responding to this question.. as a final recommendation to the author, if the program does not take command line arguments then see if it has a DDE interface..
0
 
fin_compAuthor Commented:
Thank you everyone. I finally got this working, but is there a way to close multiple application windows from .NET. The problem I have now is that whenever I call the image processing application, a new application window comes up and the image is processed, but the thing is when the result from the image processing application is sent to the PDA, the application window still remains open. So, the more pictures I send from the PDA to the remote desktop PC for processing, the more application windows I have open on the PC. Help please!!!!
0
 
craigwardmanCommented:
not sure if there is a managed .NET way of doing that, I would imagine there should be..

if you want to do it using the unmanaged win32 API then you can use FindWindow and SendMessage [using WM_CLOSE]

e.g. (using c++, im a little rusty with my .NET atm,,)

HWND hWindow;

hWindow=FindWindow("TARGETWNDCLASS", "TARGETWNDTITLE");

if(hWindow){
    SendMessage(hWindow, WM_CLOSE, 0, 0);
}
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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