Advertisement

FStream Problem in Lesson 31

Started by April 05, 2004 06:34 AM
1 comment, last by CoreSuckYa 20 years, 11 months ago
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?
Just a guess, did you try unsigned char instead of byte?
Advertisement
this gives me cant convert unsigned char to char while parsing:

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

This topic is closed to new replies.

Advertisement