Archived

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

CoreSuckYa

FStream Problem in Lesson 31

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
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