G
Guest
Hello. I have written a simple image viewer application using C# .NET.
It only needs to display one image at a time. When a different program, in
C, running on the same machine, does a
"system(myfile.a2d2)" call, it automatically starts my image viewer
application (using file type association). a2d2 is the image file
format, my own. If the C program does the system call again for a
different image, I find that it starts a new instance of my image
viewer application running. I would like to have it so that the
already-running instance senses that another image is to be loaded,
and loads it, rather than starting a whole second instance of the
application. Any help on this OS and application question would be
appreciated.
It only needs to display one image at a time. When a different program, in
C, running on the same machine, does a
"system(myfile.a2d2)" call, it automatically starts my image viewer
application (using file type association). a2d2 is the image file
format, my own. If the C program does the system call again for a
different image, I find that it starts a new instance of my image
viewer application running. I would like to have it so that the
already-running instance senses that another image is to be loaded,
and loads it, rather than starting a whole second instance of the
application. Any help on this OS and application question would be
appreciated.