Thank you so much. I have no idea how that function works, but it does. I will stick it in my library. Thank you so much, I can make a lot of cool stuff now. Once again, thx a tonne.
Kip
P.S. Do you know how to display a pic in the console? Like a crummy one.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey guys. Does anyone know how to make it so as soon as the user opens my .exe, it will automaticaly go to fullscreen?
Kip
alt+enter
I mean automaticaly, without them changing their preferences.
#include <stdio.h>
#include <windows.h>
// FULL SCREEN
typedef BOOL (WINAPI *PROCGETCONSOLEDISPLAYMODE)(LPDWORD);
typedef BOOL (WINAPI *PROCSETCONSOLEDISPLAYMODE)(HANDLE,DWORD,LPDWORD);
PROCGETCONSOLEDISPLAYMODE GetConsoleDisplayMode;
PROCSETCONSOLEDISPLAYMODE SetConsoleDisplayMode;
DWORD dwNewMode=1;
// END FULL SCREEN
main()
{
// FULL SCREEN MODE
HMODULE hKernel32 = GetModuleHandle("kernel32");
GetConsoleDisplayMode = (PROCGETCONSOLEDISPLAYMODE)
GetProcAddress(hKernel32,"GetConsoleDisplayMode");
SetConsoleDisplayMode = (PROCSETCONSOLEDISPLAYMODE)
GetProcAddress(hKernel32,"SetConsoleDisplayMode");
DWORD dwOldMode;
GetConsoleDisplayMode(&dwOldMode);
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleDisplayMode(hOut,dwNewMode,&dwOldMode);
// END FULL SCREEN MODE
printf("Testing: Hello World!");
getchar();
}
Hope that helps. :) I can't remember the way for 9x but there is one.
-Justin
Thank you so much. I have no idea how that function works, but it does. I will stick it in my library. Thank you so much, I can make a lot of cool stuff now. Once again, thx a tonne.
Kip
P.S. Do you know how to display a pic in the console? Like a crummy one.