• Advertisement

Archived

This topic is now archived and is closed to further replies.

FStream Problem in Lesson 31

This topic is 5073 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 added #include <fstream> #include <iostream> using namespace std; to the Milkshapemodel.cpp but still gives me an eror at inputFile.read( pBuffer, fileSize ); -cant convert byte to char but when i change byte *pBuffer = new byte[fileSize]; to char *pBuffer = new char[fileSize]; something else gets fucked up obviously can someone provide me a fast solution?

Share this post


Link to post
Share on other sites
Advertisement
this gives me cant convert unsigned char to char while parsing:

unsigned char *pBuffer = new byte[fileSize];
inputFile.read( pBuffer, fileSize );

Share this post


Link to post
Share on other sites

  • Advertisement