I am wanting this program to not display/generate a window when ran. I forgot how.
Thanks,
James
I am wanting this program to not display/generate a window when ran. I forgot how.
Thanks,
James
What program? What window? !!
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
If your using msvc then put your console code in a win32 app, no window will appear.
I am using Visual Studio 6.0.
I am wanting the DOS windows to disappear because I am not displaying anything on the screen.
If you've created a console program, you'll need a console to run it in. If you've created a Windows GUI program, you don't need a console window, or any visible window if you don't want.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Example:
Needs to be a win32 app not a win32 console app.
this isn't a console program, it's a windows program. But it demonstrates that you can easliy write a 'console' program without a window, just by changing main.Code:int WINAPI WinMain( HINSTANCE hThisInst, HINSTANCE hPrevInst, LPSTR lpszArgs, int nWinMode ) { FILE *fp; fp = fopen( "temp.txt", "wt" ); fputs( "Hello World", fp ); fclose( fp ); return 0; }
I do not understand that code. Am I going to have to use MFC programming to not use a window? the code is in C right now. I may end up using COBOL.
I am just wanting to do this.
printf("\a"); //beep