Link to home
Start Free TrialLog in
Avatar of antinutrino
antinutrino

asked on

using the C++ Standard Library

Hi

I am trying to use the Standard Library in an MFC or Win32 app

#include <iostream>

causes compilation errors. Can I use Standard Library in MFC,
it works in WIN32 but how can I get the cout, output window

Do I have to create a different type of project?

just want to play about with the standard library as its been a while
and I have no other C++ compiler.

Thanks
anti
ASKER CERTIFIED SOLUTION
Avatar of Axter
Axter
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nonubik
nonubik

>causes compilation errors.

Try to add after the #include :
using namespace std;
If you include #include <iostream> at the top of the main project include file i.e. stdafx.h, you will not get compilation error, though there will be heaps of warnings issued.
Avatar of antinutrino

ASKER

thanks for all the answers.

anti