To support the SaveAs dialog box, you must add the following constant definition to the header file:
#define MAXFILESIZE 0x7FFF