Common Dialog Error Constants

The following table shows the Common Dialog error constants you can use anywhere in your code in place of actual values.

Constant
Value
Description
cdlAlloc &H7FF0 The system could not allocate memory for the FileName or Filter property.
cdlCancel &H7FF3 The Cancel option was selected.
cdlDialogFailure &H8000 The function failed to load the dialog box.
cdlFindResFailure &H7FF9 The function failed to load a specified resource.
cdlHelp &H7FEF The call to Windows Help failed.
cdlInitialization &H7FFD The function failed during initialization.
cdlLoadResFailure &H7FF8 The function failed to load a specified string.
cdlLockResFailure &H7FF7 The function failed to lock a specified resource.
cdlMemAllocFailure &H7FF6 The function was unable to allocate memory for internal data structures.
cdlRegistryFailure &H0009 The common dialog box function was unable to read from registry.