Hi!
I have a big problem saving my dynamic data into a binary file.
This is my code:
Code:
// font structure
typedef struct _FONT_DATA
{
short Length, Height;
char Author[21], Email[31], Date[81], ID_CHAR[21], ID_FONT[11];
BYTE **Char;
} FONT_DATA;
FONT_DATA *FontData;
.
.
.
// this is the way I use to save my font data, for which I think is wrong
fwrite (FontData, sizeof (FONT_DATA), 1, FNTFile);
The result is that the only thing that gets saved is that static data (author, length, height, email, ...), the dynamic data is not saved at all. What to do??