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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fstream error

Status
Not open for further replies.

BaharPamuk

Programmer
Jan 30, 2006
16
TR
Do you have any idea about this error message?

cstdlib(22): error C2039: 'exit' : is not a member of 'operator``global namespace'''

cstdlib(22): error C2873: 'exit' : symbol cannot be used in a using-declaration

This error occured after i added these lines:

#include <fstream>
using namespace std;

and

ifstream testfile("Test File");

into

BOOL InitInstance() function of MFC

Thanks


 
What version and service pack of Visual Studio are you running?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top