I upgraded and my project no longer builds!


2005-05-07 12:20:44 AM
cppbuilder67
I upgraded from build 10.157 to build 10.166. Before the upgade the
following code segment compiled just fine.
. . .
ifstream strmIn(m_sImageFile.c_str(), ios::in | ios::binary);
strmIn.seekg(0, ios::end);
int nSize = strmIn.tellg()/1024;
strmIn.close();
...
After the upgrade I am getting some rather odd error messages (the first
error message refers to the last line of code above):
[C++ Error] files.cpp(1498): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(1560): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(1596): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(1602): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(1605): E2316 '_close' is not a member of 'ifstream'
[C++ Error] files.cpp(2223): E2316 '_open' is not a member of 'ifstream'
[C++ Error] files.cpp(2229): E2316 '_read' is not a member of 'ifstream'
[C++ Error] files.cpp(2230): E2316 '_close' is not a member of 'ifstream'
Of course these error messages make no sense since all of these are indeed
member functions of the class. Any ideas on how to fix this??