Full screen dos box?

This is a discussion on Full screen dos box? within the C Programming forums, part of the General Programming Boards category; For Win98, cosonle prog, and GCC, how do you make your program switch to full screen mode immediately, if it ...

  1. #1
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765

    Full screen dos box?

    For Win98, cosonle prog, and GCC, how do you make your program switch to full screen mode immediately, if it isn't already?
    The world is waiting. I must leave you now.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826

    Re: Full screen dos box?

    Originally posted by Shadow
    For Win98, cosonle prog, and GCC, how do you make your program switch to full screen mode immediately, if it isn't already?
    Edit the default .pif file for Windows to launch in a full screen. (Alternately I believe you can just run 'command' from the runline, and make sure it's full screen, then type exit.)

    By the way, this has nothing to do with C programming.

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I already know how to do that .

    By the way, you didn't come close to answering my question.
    The world is waiting. I must leave you now.

  4. #4
    Unregistered
    Guest

    you could do that

    you could do what the last guy said, but that would only work on your computer, if you want it to do that automaticaly, if say you gave the program to a freind you'de have to do some coding.

    I think you could probably find a way to use system() to send a command to dos to run in full screen, but i don't know, try searching google for:

    C language auto screen sizing code

  5. #5
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by Shadow
    I already know how to do that .

    By the way, you didn't come close to answering my question.
    This is a windows setting. It is the default pif it pulls the information from when it creates a console window. Edit THAT and not the pif that is created whenever you execute your dos app. Like I said, this has nothing to do with programming. This is a Windows issue.

    Quzah.
    Hope is the first step on the road to disappointment.

  6. #6
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    you could do what the last guy said, but that would only work on your computer, if you want it to do that automaticaly, if say you gave the program to a freind you'de have to do some coding.
    Precisely Unregistered.

    I think you could probably find a way to use system() to send a command to dos to run in full screen, but i don't know, try searching google for:

    C language auto screen sizing code
    I will try that.
    The world is waiting. I must leave you now.

  7. #7
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    Code:
    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);
    Thanks again, Quzah...
    Last edited by Shadow; 04-18-2002 at 09:55 PM.
    The world is waiting. I must leave you now.

  8. #8
    Unregistered
    Guest
    the keybd_event is found in windows.h, right?

  9. #9
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    I believe so. The "self made" include file I have it in, has other stuff in it, which that file includes windows.h. I am not sure if the keybd_event needs windows.h though. Try it and find out...
    The world is waiting. I must leave you now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Capturing dos text screen in C
    By hednast in forum C Programming
    Replies: 13
    Last Post: 08-11-2005, 08:49 PM
  2. i am not able to figure ot the starting point of this
    By youngashish in forum C++ Programming
    Replies: 7
    Last Post: 10-07-2004, 03:41 AM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 05:19 AM
  4. Virtual screen, character based DOS interface
    By arakvaag in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 04-05-2002, 02:41 AM
  5. Win32 Console Application...Full Screen?
    By MrWizard in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2002, 02:56 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21