For Win98, cosonle prog, and GCC, how do you make your program switch to full screen mode immediately, if it isn't already?
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.
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.)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?
By the way, this has nothing to do with C programming.
Quzah.
Hope is the first step on the road to disappointment.
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.
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
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.Originally posted by Shadow
I already know how to do that .
By the way, you didn't come close to answering my question.
Quzah.
Hope is the first step on the road to disappointment.
Precisely Unregistered.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 will try that.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
The world is waiting. I must leave you now.
Thanks again, Quzah...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);
Last edited by Shadow; 04-18-2002 at 08:55 PM.
The world is waiting. I must leave you now.
the keybd_event is found in windows.h, right?
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.