You need to add a constant definition to the include file to support the Save As dialog box. Add the following statement to the include file:
#define MAXFILESIZE 0x7FFF