Thread: Console Window Possibilities.....

  1. #1
    Registered User
    Join Date
    Jan 2006
    Location
    North Yorkshire, England
    Posts
    147

    Console Window Possibilities.....

    ..just out of interest, could some of you post code showing the capabilities of the console window?

    i know theres a few tricks you can do but, i would like to get an idea of what kind of creative stuff people have managed to do with it.

    thanks,

  2. #2
    VA National Guard The Brain's Avatar
    Join Date
    May 2004
    Location
    Manassas, VA USA
    Posts
    903
    Here is probably the best tutorial on how to do everything with the DOS console... an introduction into 'event-model' programing.

    http://www.adrianxw.dk/
    • "Problem Solving C++, The Object of Programming" -Walter Savitch
    • "Data Structures and Other Objects using C++" -Walter Savitch
    • "Assembly Language for Intel-Based Computers" -Kip Irvine
    • "Programming Windows, 5th edition" -Charles Petzold
    • "Visual C++ MFC Programming by Example" -John E. Swanke
    • "Network Programming Windows" -Jones/Ohlund
    • "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
    • "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel

  3. #3
    Registered User
    Join Date
    Jan 2006
    Location
    North Yorkshire, England
    Posts
    147
    Quote Originally Posted by The Brain
    Here is probably the best tutorial on how to do everything with the DOS console... an introduction into 'event-model' programing.

    http://www.adrianxw.dk/
    thanks for the linky, ive used this site once or twice along time ago though, thought it didnt get updated tbh.

    mean while, if anybody has done anything fancy with it feel free to post a screenshot or some code..........

  4. #4
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Well, you can make the console fill the screen, thus eliminates the "window" aspect of it.

    Code:
    void FS ( void ); // prototype
    
    void FS ( void )
    {
       keybd_event(VK_MENU, 0x38, 0, 0);
       keybd_event(VK_RETURN, 0x1c, 0, 0);
       keybd_event(VK_RETURN, 0x1c, KEYEVENTF_KEYUP, 0);
       keybd_event(VK_MENU, 0x38, KEYEVENTF_KEYUP, 0);
    }
    In main, call FS() to see the result, this function does however require the
    windows.h header file, so you will need the platform SDk installed

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console window in VC 2008
    By swgh in forum Tech Board
    Replies: 0
    Last Post: 06-05-2008, 03:13 PM
  2. creating a child window
    By rakan in forum Windows Programming
    Replies: 2
    Last Post: 01-23-2007, 03:22 PM
  3. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  4. problem with open gl engine.
    By gell10 in forum Game Programming
    Replies: 1
    Last Post: 08-21-2003, 04:10 AM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 10:01 PM