Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Console Application Problem

Status
Not open for further replies.

zytryt

Instructor
Feb 27, 2003
5
US
I have written a "Win32 Console Application." When I compile it, the ENTIRE monitor screen (Windows desk top and all!) blanks out for a moment. Then everthing, including the VC++ window reappears. The same thing happens when I build (link) the exe file. When I execute the program, the entire monitor screen turns into a DOS screen to run the program. Why doesn't VC++ just open a "DOS window" to execute the program? And how can I stop the annoying blanking out during the compile and link steps? Although I have programmed ANSI C++ before, I am a new user with Visual C++ 6.0, actually the free "Introductory Edition" that came with a Deitel textbook. I am also running Windows 2000. Thanks.
 
Some shortcuts may be have "full screen" initial settings. Try press Alt+Enter during execution of your programm. After switching to windowed mode try edit properties of that window.
 
How much memory do you have installed on your PC? Compiling and linking an executable is a very memory intensive task.

As far as the entire monitor turning in to a dos screen, I have never seen that happen before and I have been using VC6 since it was released. I would have to aggree with the first post and suggest that the reason for this is you probably accidently changed the settings and if you apply changes can be saved to all future dos windows with the same name. Next time you run the program press "alt-enter" then right click on the dos window taskbar item and select properties. Make sure all the settings are correct and press "OK". In the save dialog that pops up make sure you select the option that says "save properties for future windows with same title".

Good luck.
 
I tried this suggestion, and it was a dead end. The alt-enter did switch the full-screen execution to a DOS window, but when I looked at the properties of this window, under "Display Options" it already said "Window" rather than "Full Screen." However, the next time I executed the program, it again executed in "full screen" mode. Also, there was no change to the problem of blinking out during compiling and linking. Any further suggestions? Thanks.
 
Sorry guys! After retrying the suggestion, I did make it work. However, after right-clicking in the DOS window bar, I had to select "Default," not "Properties." That allowed me to change the default settings from "Full Screen" to "Window." The next time I executed the program, it executed in a DOS window--GREAT! Also, the screen didn't blink out during compiling and linking--again, GREAT! However, I suspect that I'll have to do this again with all new projects, since the name of the DOS window will be different. There must be some setting somewhere in VC++ to make it always use windows by default, but I haven't found it. If anyone has an idea, I'd love to hear it. Otherwise, I can just make the change manually for each new project (ugh). Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top