is it possible to somehow bring up a picture file in another window in a console prog? and if its possible...could someone either tell me how to do this or tell me what to search for? thanks
is it possible to somehow bring up a picture file in another window in a console prog? and if its possible...could someone either tell me how to do this or tell me what to search for? thanks
You can have your consol program open paint.exe with system() not pretty but it works on an MS box.
~Barjor
How to do this though? i tried to do that before but i would only get "bad command or filename" what is the header file needed to do that? and do i need to put the path exp c:/mydocument/paint.exe?
paint is usually in
c:\program files\accessories\mspaint.exe
the function call to use for this is
one of the spawn functions ... see the faqs or
system( filepath );
process.h has the spawn functions
the call can be made like this
Code:strcpy(pathtopaint_and_file, "C:\\PROGRAM FILES\\ACCESSORIES\\MSPAINT.EXE C:\\MYDOCUMENTS\\MYPIC.BMP"; system( pathtopaint_and_file );
zMan
Well it still didnt work...but i guess its really not needed...hopefully someday in the future ill start proggin in windows...then i should have no trouble doing that stuff