size of an object
Posted on 2000-02-23
I'm trying to write an object to a file.
Here is the code being used now.
int eCount = sizeof(Session);
TFileStream *eStream = new TFileStream ("aTest.fse" , fmCreate);
The problem is that the sizeof is not giving the right size so it doesnt write the correct amount to the file. This method is actually inside the class. So you call a method in the class and it writes the object to the disk. Any ideas how to correct the size problem?