GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 23-Sep-2008, 09:03
gidfuser gidfuser is offline
New Member
 
Join Date: Sep 2008
Posts: 3
gidfuser is on a distinguished road
Smile

Screen blanks during building and compiling


Hi,

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  
Old 23-Sep-2008, 12:40
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: Screen blanks during building and compiling


This 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:
cout << endl << "Press any key to continue..." << endl;
getchar();
  #3  
Old 23-Sep-2008, 13:58
gidfuser gidfuser is offline
New Member
 
Join Date: Sep 2008
Posts: 3
gidfuser is on a distinguished road
Smile

Re: Screen blanks during building and compiling


Thanks 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  
Old 23-Sep-2008, 15:08
fakepoo fakepoo is offline
Regular Member
 
Join Date: Oct 2007
Posts: 713
fakepoo is a jewel in the roughfakepoo is a jewel in the roughfakepoo is a jewel in the rough

Re: Screen blanks during building and compiling


You'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  
Old 24-Sep-2008, 01:16
gidfuser gidfuser is offline
New Member
 
Join Date: Sep 2008
Posts: 3
gidfuser is on a distinguished road
Smile

Re: Screen blanks during building and compiling


Thanks 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 GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 17:37.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.