Display a Graphic from a Unix program on a Pc – how?

An interesting puzzle. I run character based compiled C-Programs in a Unix environment on PCs in a Window. I want to be able to call up and display in a separate window a picture of a product called by a Unix shell script from within my Unix program.

Ideally I would like to have a script that can call up a jpeg image held in a windows file and display it in a separate window from that of the Unix Program.

I can write elementary scripts but nothing fancy. The programing language that I use can call up a Unix script and pass parameters to it.

Can this be done and how?? Any ideas??

Thanks Barry Staples

Is running an X server on the windows box an option? If so just send the output the X server established.

Thanks
I'm not familiar with an X-Server
How would a Unix script communicate with it?
Sorry to be so dumb
cheers barry

This is pretty good:

X Window System - Wikipedia, the free encyclopedia

On a pc, you can run a product called exceed, or free download cygwin:

Cygwin - Wikipedia, the free encyclopedia

if you are on another host, find the ip of the windows box, <ipconfig> or bginfo. Once you have the x display server process running on the win box, set the display env in the unix script to that box:

export DISPLAY=<ip>0.

setenv DISPLAY <ip>0. for tcsh users

Thanks, I have downloaded the details about X-Windows and Cygwin and will investigate further.
I really appreciate the help and thanks for pointing me in the right direction.
Barry Staples
barry_staples@hotmai.com