![]() |
|
#1
|
|||
|
|||
Screen blanks during building and compilingHi,
I am an absolute beginner and have just installed the free Visual Studio 2008 for C++. I am writing some very simple code but when I build or compile the program the screen goes blank and flickers slightly before returning to the normal view.This happens whether there are errors in the code or not. I have a feeling that the output window may be set to full screen mode but have been unable to find the setting to set this to window mode. I've learned that I can toggle between the two modes using ALT-ENTER but the next time I rebuild my app it goes back to full screen mode. Also I need to know if there is some way to completely delete a project. Any information would be greatly appreciated please. TIA. |
|||
|
#2
|
|||
|
|||
Re: Screen blanks during building and compilingThis is what happens when you run a command-line program from visual studio. You'll need to add the following code to the end of main().
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Screen blanks during building and compilingThanks for that but unfortunately it does not change anything.
I load up my project.I hit F5 to run it. A dialog box comes up asking if I want to build it. I press yes and the whole screen goes black while it is building the project. The normal view is restored and the program output window appears. The program I created which is in the program output window worked as expected so I am at a loss as to why it does this. |
|
#4
|
|||
|
|||
Re: Screen blanks during building and compilingYou're saying your program output window appears so that you can see the message "Press any key to continue..."? If that's the case, I have no idea why your screen has gone black. Try putting those same 2 lines at the beginning of main() to see whether it is going black while building or during the execution of the program.
|
|
#5
|
|||
|
|||
Re: Screen blanks during building and compilingThanks for that.
Did a bit more investigating and discovered the problem. According to Microsoft:- "The default settings for the Command Prompt on Microsoft Windows Vista (32-Bit), Microsoft Windows Server 2003, Microsoft Windows XP (32-Bit), Microsoft Windows Server 2000, Microsoft Windows NT, Microsoft Windows Millennium Edition, Microsoft Windows 98, or Microsoft Windows 95 are set to full screen." So it's not a setting in Visual Studio 2008, it's a setting on the command prompt!! You learn something new every day. Thanks again for your help. |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with C++ Compiling Error | Altmaniac | C++ Forum | 5 | 21-Aug-2007 07:29 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The