I have this as a private on my class:
Code:
unsigned int cantFrames;
And this is in its constructor:
Code:
IPPHeader::IPPHeader(FILE* ippFile){
fread(&cantFrames, sizeof(unsigned int), 1, ippFile);
My program hangs on that fread. I get that Windows "Send/Don't Send" error... I checked if ippFile was NULL, but it's not... What may be wrong?
Oh, BTW, this is how I stored that data on the file, on a completely different application:
Code:
FILE* ippFile
ippFile = fopen(fileName,"wb");
unsigned int cantFrames = 9;
fwrite(&cantFrames,sizeof(unsigned int),1,ippFile);
//I wrote more things, but it doesn't matter as I can't even read the first one...
fclose(ippFile);