hide cmd
-
harukiblue
- Posts: 49
- Joined: Sun Dec 10, 2006 6:23 pm
good question
I was wondering this too, however through out my travels you have to be OS specific in order to do this. A.K.A. you would have to use windows library with mfc or something. which is a shame if you wanted to make a game for more then one OS. Well I guess you still can, but it is more coding setting up the app frames for every OS. 
Hey,
change the Outputtyp from Consoleapplication to Windowsapplication.
go to you Project Propertys (right-mouse-click in the project)
on next screen there are Tabs: Application; Compile; Build....; Debug;
Change to Application, in there are a ComboBox "Output-type".
change it to Windowapplication.
(i think All this translation are not direct correct, because i have a german C#2005 Express)
i hope it helps
change the Outputtyp from Consoleapplication to Windowsapplication.
go to you Project Propertys (right-mouse-click in the project)
on next screen there are Tabs: Application; Compile; Build....; Debug;
Change to Application, in there are a ComboBox "Output-type".
change it to Windowapplication.
(i think All this translation are not direct correct, because i have a german C#2005 Express)
i hope it helps
i couldn't find that optionJDHunter wrote:Hey,
change the Outputtyp from Consoleapplication to Windowsapplication.
go to you Project Propertys (right-mouse-click in the project)
on next screen there are Tabs: Application; Compile; Build....; Debug;
Change to Application, in there are a ComboBox "Output-type".
change it to Windowapplication.
(i think All this translation are not direct correct, because i have a german C#2005 Express)
i hope it helps
-
Athlon_Jedi
- Posts: 156
- Joined: Wed Jul 21, 2004 4:29 am
- Location: Mishawaka, In
simple
another kinda cheating way to do it is to run your app in full screen lol
the pragma comment should do the trick though dont know why it isnt in your case
the pragma comment should do the trick though dont know why it isnt in your case
bunch of coding and setup??
#ifdef
win32
int main(hinstance *windowsgayhandle)
#else
something retarded like mac or linux
#endif
blah blah blah omg that was so hard to setup and write...
guice had this crap 2 years ago... guess nobody ever looked at the source there was a lot of neat irrlicht tricks... that took me two years to compile into the crappy program that guice was...only because it had to do backflips to work properly... dot dot dot bitches
#ifdef
win32
int main(hinstance *windowsgayhandle)
#else
something retarded like mac or linux
#endif
blah blah blah omg that was so hard to setup and write...
guice had this crap 2 years ago... guess nobody ever looked at the source there was a lot of neat irrlicht tricks... that took me two years to compile into the crappy program that guice was...only because it had to do backflips to work properly... dot dot dot bitches
This does the trick for me:
However, if you create a Win32 project instead of a Win32 Console and replace main() by WinMain() you won't get the dosbox at all.
Code: Select all
char filename[4096];
HWND hWnd;
GetModuleFileName(NULL,filename+1,4094);
hWnd=FindWindow(NULL,filename+1);
if (!hWnd)
{
filename[0]='\"';
sprintf(filename+1+strlen(filename+1),"\"\0");
hWnd=FindWindow(NULL,filename);
}
ShowWindow(hWnd,false);Re: hide cmd
[quote="kompromis"]how can i hide the cmd window
and still use
main()
//thanks[/quote]
Try add
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
to your linker option (the command line edit box).
HTH
and still use
main()
//thanks[/quote]
Try add
/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup
to your linker option (the command line edit box).
HTH
Check out
ftp://81.226.97.243:12350/Anonymous/3.JPG
Change to subsystem windows.
EDIT:
Opps, that address doesnt work. Check http://hem.passagen.se/pierrelemoine/asd.html instead
ftp://81.226.97.243:12350/Anonymous/3.JPG
Change to subsystem windows.
EDIT:
Opps, that address doesnt work. Check http://hem.passagen.se/pierrelemoine/asd.html instead