Error Messages (Common Dialog)

 

The following table lists the trappable errors for the common dialog control.

Error               

number            Message explanation

 

32765              CDERR_INITIALIZATION

                        The common dialog function failed during initialization.  This error often occurs when sufficient memory is not available.

32761               CDERR_FINDRESFAILURE

                        The common dialog function failed to load a specified string.

32760               CDERR_LOADRESFAILURE

                        The common dialog function failed to load a specified resource.

32759               CDERR_LOCKRESFAILURE

                        The common dialog function failed to lock a specified resource.

32758               CDERR_MEMALLOCFAILURE

                        The common dialog function was unable to allocate memory for internal data structures.

32757               CDERR_MEMLOCKFAILURE

                        The common dialog function was unable to lock the memory associated with a handle.

32755               CDERR_CANCEL

                        Cancel was selected.

32752               CDERR_ALLOC

                        Couldn't allocate memory for FileName or Filter.

32751               CDERR_HELP

                        The call to WinHelp failed.  Check the Help property values.

28671               PDERR_PRINTERCODES

                        The PD_RETURNDEFAULT flag was set in the Flags member of the PRINTDLG data structure, but either the hDevMode or hDevNames field was nonzero.

28670               PDERR_SETUPFAILURE

                        Load of the required resources failed.

28669               PDERR_PARSEFAILURE

                        The common dialog function failed to parse the strings in the [devices] section of the file WIN.INI.

28668               PDERR_RETDEFFAILURE

                        The PD_RETURNDEFAULT flag was set in the Flags member of the PRINTDLG data structure, but either the hDevMode or hDevNames field was nonzero.

28667               PDERR_LOADDRVFAILURE

                        The PRINTDLG function failed to load the specified printer's device driver.

28666               PDERR_GETDEVMODEFAIL

                        The printer device driver failed to initialize a DEVMODE data structure.  (This error constant applies only to printer drivers written for Windows version 3.0 or later).

28665               PDERR_INITFAILURE

                        The PRINTDLG function failed during initialization.

28664               PDERR_NODEVICES

                        No printer device drivers were found.

28663               PDERR_NODEFAULTPRN

                        A default printer does not exist.

28662               PDERR_DNDMMISMATCH

                        The data in the DEVMODE and DEVNAMES data structures describes two different printers.

28661               PDERR_CREATEICFAILURE

                        The PRINTDLG function failed when it attempted to create an information context.

28660               PDERR_PRINTERNOTFOUND

                        The [devices] section of the file WIN.INI did not contain an entry for the requested printer.

24574               CFERR_NOFONTS

                        No fonts exist.  Before displaying the Font dialog box, you must set one of these flags: CF_BOTH, CF_PRINTERFONTS, or CF_SCREENFONTS.

20478               FNERR_SUBCLASSFAILURE

                        An attempt to subclass a list box failed due to insufficient memory.

20477               NERR_INVALIDFILENAME

                        File name is invalid.

20476               FNERR_BUFFERTOOSMALL

                        The buffer at which the member lpstrFile points is too small.  When this error occurs, the minimum required string length is displayed in the first few characters of the FileName property.