I have been using Microsoft Visual C++ 6.0, and I just installed the .NET version, Visual C++ 2003. I converted a standard C/C++ console application from 6.0 to 2003 by opening the workspace file and accepting automatic conversion. Link and compile settings seem to be carried over. On compilation C++ 2003 could not find the header files in the following includes:
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
I thought these were standard. They work in MSVC++ 6.0. What gives?
I did a search, and those three header files are nowhere to be found in the 2003 install directory. I found three similar files, missing the ".h" extensions, that I included by
#include <iostream>
#include <fstream>
#include <iomanip>
These do not work either. Now the compiler finds the include files, but it cannot find declarations of cout, endl, and other functions and classes that are found in the standard headers (the .h files). The MSDN documentation says that cout, for example, is a member of <iostream>. but the compiler cannot find cout, even though it can find the file. I verified that cout is not mentioned in the file iostream.
I tried a blank project, and it had the same problem.
I had done a full install of the product and the documentation.
I find the 2003 documenation (MSDN) to be far inferior to that in 6.0. I can't find any clues about this.
Any ideas?
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
I thought these were standard. They work in MSVC++ 6.0. What gives?
I did a search, and those three header files are nowhere to be found in the 2003 install directory. I found three similar files, missing the ".h" extensions, that I included by
#include <iostream>
#include <fstream>
#include <iomanip>
These do not work either. Now the compiler finds the include files, but it cannot find declarations of cout, endl, and other functions and classes that are found in the standard headers (the .h files). The MSDN documentation says that cout, for example, is a member of <iostream>. but the compiler cannot find cout, even though it can find the file. I verified that cout is not mentioned in the file iostream.
I tried a blank project, and it had the same problem.
I had done a full install of the product and the documentation.
I find the 2003 documenation (MSDN) to be far inferior to that in 6.0. I can't find any clues about this.
Any ideas?