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

Posted on 2006-05-25
Last Modified: 2013-12-03
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
Question by:fin_comp
    LVL 8

    Expert Comment

    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!)


    Author Comment

    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?
    LVL 1

    Expert Comment

    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...
    LVL 8

    Expert Comment

    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..

    Author Comment

    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!!!!
    LVL 8

    Accepted Solution

    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;


        SendMessage(hWindow, WM_CLOSE, 0, 0);

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
    zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now