Sign in to follow this  

Please help!

This topic is 4092 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having the following errors with my code. I was trying to implement Lesson 31 from NeHe. I was originally using fstream.h that called apstring.cpp. When I did that I got the error that it could not find apstring.cpp. I then was advised to put #include fstream so that it would use the windows version. I am now having the following errors. In the following line of code I am seeing the following errors: std::ifstream inputFile( filename, std::ios::in | std::ios::binary | ios::nocreate ); d:\Profiles\r65136\My Documents\Visual Studio Projects\Convergence Project 6\MilkShapeModel.cpp(104): error C2653: 'ios' : is not a class or namespace name d:\Profiles\r65136\My Documents\Visual Studio Projects\Convergence Project 6\MilkShapeModel.cpp(104): error C2065: 'nocreate' : undeclared identifier Then in the following line of code I have the following error: inputFile.read( pBuffer, fileSize ); d:\Profiles\r65136\My Documents\Visual Studio Projects\Convergence Project 6\MilkShapeModel.cpp(112): error C2664: 'std::basic_istream<_Elem,_Traits>::read' : cannot convert parameter 1 from 'byte *' to 'char *' with [ _Elem=char, _Traits=std::char_traits<char> ] Please help!

Share this post


Link to post
Share on other sites

This topic is 4092 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this