home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Visual Studio 2002 problem

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1503
Discussions: 200,955, Posts: 2,379,483, Members: 246,317
Old January 26th, 2006, 05:16 PM   Digg it!   #1 (permalink)
27
Ultimate Member
 
27's Avatar
 
Join Date: Jun 2004
Location: England
Posts: 1,407
Visual Studio 2002 problem

Hey,
I'm running visual C++ 7 from my Visual Studio.net Academic Edition 2002.


According to this site, there is a fix to a problem I have on Version 10.
http://www.infoworld.com/article/05/...lstudio_1.html
Quote:
Yet another fix applies to building console-based applications that use a command-line interface. “When you build a command-line application and compile and run that application from Visual Studio, sometimes the output window closes too quickly to see the results of your program” during debug mode, Keller said. “Now when you run a command-line app from within Visual Studio, the user will receive a ‘Press any key to continue’ prompt.”

My output window closes too quickly on version 7.
Is there some way that I can rectify this?
27 is offline   Reply With Quote
Old January 27th, 2006, 02:39 PM     #2 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
I think it is something like:

Code:
system("pause");
Iturea is offline   Reply With Quote
Old January 30th, 2006, 05:40 PM     #3 (permalink)
27
Ultimate Member
 
27's Avatar
 
Join Date: Jun 2004
Location: England
Posts: 1,407
Quote:
Originally Posted by Iturea
I think it is something like:

Code:
system("pause");

Thanks.
I'm something of a novice at C++. Can you tell me how I'd insert that into the listing below?
Quote:
#include <string>
#include <iostream>
using namespace std;

void writename(); //prototypes (function declarations)
void writetitle();

int main()
{
writetitle(); //function calls
writename();
return 0;
}

void writename() //function definition
{
string name = "Mike McGrath";
cout << name << endl;
}

void writetitle() //function definition
{
string title = "C++ Programming in easy steps";
cout << title << " by ";
}

27 is offline   Reply With Quote
Old January 30th, 2006, 06:33 PM     #4 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Smile

Just put it before the return 0; line in main()
Iturea is offline   Reply With Quote
Old January 30th, 2006, 06:53 PM     #5 (permalink)
27
Ultimate Member
 
27's Avatar
 
Join Date: Jun 2004
Location: England
Posts: 1,407
Quote:
Originally Posted by Iturea
Just put it before the return 0; line in main()

Thank you very much.
If there were more people like you, the world would be a better place.
God bless you!
And your children!!
And your children's children!!!
27 is offline   Reply With Quote
Old January 30th, 2006, 06:54 PM     #6 (permalink)
27
Ultimate Member
 
27's Avatar
 
Join Date: Jun 2004
Location: England
Posts: 1,407
Now, is there a way to permanently build it into Visual Studio 2002 automatically, something in the settings perhaps?
27 is offline   Reply With Quote
Old January 31st, 2006, 09:34 AM     #7 (permalink)
Banned
 
Iturea's Avatar
 
Join Date: Jan 2004
Location: Earth
Posts: 420
Cool

Quote:
Originally Posted by 27
Now, is there a way to permanently build it into Visual Studio 2002 automatically, something in the settings perhaps?

Sorry, but I never experienced your problem before. Version 2002 has always automatically paused in debug mode for me. Just make sure next to the run button it says debug and not release. I have no idea why it is not working for you.

Thanks for blessing me and my children!
Iturea is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2003 redfoxstorm Webmastering and Programming 1 May 29th, 2005 06:00 PM
WTB: Visual Studio or Visual C++ brandon184 Traders Forum: Buy, Sell, Trade 2 March 25th, 2004 04:32 PM
got visual studio, now what? JacobM5727 Webmastering and Programming 1 November 26th, 2003 06:47 PM
problem with visual studio .net cyberkan Applications and Operating Systems 0 September 11th, 2002 03:21 PM
Wierd Problem with MS Visual Studio voogru Applications and Operating Systems 4 December 14th, 2001 11:38 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
The disrespect of Obama by Russian .. (41)
Is It Just Me? (2943)
Making Health Care Worse (178)
Wireless Televisions. (12)
CPU fan stops spinning randomly (9)
windows 7 problem (7)
Regular Build (11)
Is the PSU I received dead? (12)
radeon x850xt platinum & shader.. (6)
Print spooler problem (15)
windows vista security holes (10)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Recent Discussions
whats the fastest dvd ripper? (13)
CPU fan stops spinning randomly (9)
Common Spyware Solutions (105)
How to Convert Blu Ray Disc Movie to .. (0)
How to Enjoy Your Favorite Videos on .. (0)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)
Help with onclick and buttons (0)
Modern Warfare 2: Who Bought It? (63)
Virus advise (8)
My monitor won't turn on after instal.. (1)
Laptop with wireless problem. (3)
Internet Lost (3)
Dept. of HS: NSA 'Helped' Develop Vis.. (16)
windows vista security holes (10)
Point and Shoot Camera Suggestions. (4)
Multiple Restarts Required at Boot (2)
Ideal cheap graph card for PC-Gaming? (18)
radeon x850xt platinum & shader 3 (6)
Graphics Card Upgrade Question (4)
For Sale BFG GTX285 OC2 with 10 year .. (3)
How to convert MP3's (4)
Wireless Televisions. (12)
Hp Artist Edition + Matching Bag (0)
Asus P4G8X Mobo (6)


All times are GMT -4. The time now is 03:17 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28