troubleshooting Question

Visual Studio 2003 C++ console application console error

Avatar of Ohrasta
Ohrasta asked on
C++Editors IDEs
3 Comments1 Solution425 ViewsLast Modified:
I have visual studio 2003 and I am creating a console application under C++. Upon running I can not get my console to correctly work correctly. The console box appears but nothing is visble and no cout statements or cin statements seem to be working. Why?

I already had a 'Test fatal error LNK1201: error writing to program database' error and that problem was solved by disable the 'Microsoft Windows Defender' service. (Anti-spyware). Would there any kind of security program or setting that would stop VS from using the console correctly?

Just for sake I am including the code written.

#include "stdafx.h"
using namespace std;

int main()
      cout << "Test" << endl;
      return 0;

no text saying "Test" are ever printed, instead the console window shows up and the application stops responding. Clicking the X will reward in an end task dialog.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros