K
KevinSimonson
I'm a relative newcomer to Visual Studio. I brought it up and typed
in a very simple program:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain( int argc
, _TCHAR* argv[])
{
cout << "Hello world!" << endl;
return 0;
}
When I click on <Debug->Start Without Debugging>, a little window
comes up that says, "Hello world!" One line below it it says, "Press
any key to continue . . ."
I've also got another piece of code, that I got from an open source
project, and my boss wanted me to add some functionality to it. I
added the functionality and told my boss, and he asked me to modify
the code so that it print out the results my new code was generating.
Basically I'm doing a search for files that match a group of
keywords. So I put code in that said,
'cout << "Searching for a file with keywords \"" << strText << "\"."
<< endl;' at the point where I start the search, and I put code in
that said, 'cout << "Search found file \"" << pHits->m_sName << "\"."
<< endl;' at the point where the search starts to yield results.
Then I clicked on <Debug->Start Without Debugging>, and no little
window came up to display either of these two outputs. I also clicked
on <Debug->Start Debugging> and verified that execution does indeed go
to at least the first 'cout' command. What am I doing differently
about this open source project than I am doing with the simple "Hello
World" project up above? Is there a setting the open source project
might be set to that keeps windows from coming up for the output of
'cout' commands? If so, how do I set the open source project brings
up a little window for the output of 'cout' commands?
I posted this to "microsoft.public.vstudio.development", but it's been
two or three hours now and I haven't gotten a response, so I thought
I'd try this forum.
Kevin S
in a very simple program:
#include "stdafx.h"
#include <iostream>
using namespace std;
int _tmain( int argc
, _TCHAR* argv[])
{
cout << "Hello world!" << endl;
return 0;
}
When I click on <Debug->Start Without Debugging>, a little window
comes up that says, "Hello world!" One line below it it says, "Press
any key to continue . . ."
I've also got another piece of code, that I got from an open source
project, and my boss wanted me to add some functionality to it. I
added the functionality and told my boss, and he asked me to modify
the code so that it print out the results my new code was generating.
Basically I'm doing a search for files that match a group of
keywords. So I put code in that said,
'cout << "Searching for a file with keywords \"" << strText << "\"."
<< endl;' at the point where I start the search, and I put code in
that said, 'cout << "Search found file \"" << pHits->m_sName << "\"."
<< endl;' at the point where the search starts to yield results.
Then I clicked on <Debug->Start Without Debugging>, and no little
window came up to display either of these two outputs. I also clicked
on <Debug->Start Debugging> and verified that execution does indeed go
to at least the first 'cout' command. What am I doing differently
about this open source project than I am doing with the simple "Hello
World" project up above? Is there a setting the open source project
might be set to that keeps windows from coming up for the output of
'cout' commands? If so, how do I set the open source project brings
up a little window for the output of 'cout' commands?
I posted this to "microsoft.public.vstudio.development", but it's been
two or three hours now and I haven't gotten a response, so I thought
I'd try this forum.
Kevin S