Ok, maybe I'm smoking something but I can't seemed to get fwrite, WriteFile, or CFile to properly write the contents of a class to a file....basically, here is what I'm doing for fwrite:
What am I doing wrong here? Also I have an array of objects defined for this class. Any help would be appreciated.
btw - names are place holders of course.
thanks,
Greg
- Code:
file = fopen(filename, "wb");
fwrite(&Classname, sizeof(Classname), 1 , file);
What am I doing wrong here? Also I have an array of objects defined for this class. Any help would be appreciated.
btw - names are place holders of course.
thanks,
Greg