You must export the SaveAsDlg dialog box procedure. Add the following line to the EXPORTS statement in your module-definition file:
SaveAsDlg @4