Jump to content
  • Advertisement
Sign in to follow this  
laura1316

Please help!

This topic is 4373 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!