Thread: console question...

  1. #1
    Inez
    Guest

    console question...

    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

  2. #2
    Barjor
    Guest
    You can have your consol program open paint.exe with system() not pretty but it works on an MS box.
    ~Barjor

  3. #3
    Inez
    Guest
    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?

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    CALLING MSPAINT

    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

  5. #5
    Inez
    Guest
    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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. One process with two console windows
    By siavoshkc in forum Windows Programming
    Replies: 8
    Last Post: 01-30-2009, 04:13 PM
  2. Simple Novice Question: MS DOS app. a console?
    By renurv in forum C++ Programming
    Replies: 7
    Last Post: 12-30-2005, 02:42 PM
  3. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  4. Question type program for beginners
    By Kirdra in forum C++ Programming
    Replies: 7
    Last Post: 09-15-2002, 05:10 AM
  5. Win2K/XP console question
    By d00b in forum Windows Programming
    Replies: 8
    Last Post: 08-05-2002, 01:43 PM