how would i handle the error codes of a common dialog if its made via api? (its so i can check if the user clicked cancel.)
cheers
Printable View
how would i handle the error codes of a common dialog if its made via api? (its so i can check if the user clicked cancel.)
cheers
MSDN Sez :
That's for GetOpenFileName.Quote:
If the user cancels or closes the Open dialog box or an error occurs, the return value is zero. To get extended error information, call the CommDlgExtendedError function, which can return one of the following values:
CDERR_DIALOGFAILURE
CDERR_FINDRESFAILURE
CDERR_NOHINSTANCE
CDERR_INITIALIZATION
CDERR_NOHOOK
CDERR_LOCKRESFAILURE
CDERR_NOTEMPLATE
CDERR_LOADRESFAILURE
CDERR_STRUCTSIZE
CDERR_LOADSTRFAILURE
FNERR_BUFFERTOOSMALL
CDERR_MEMALLOCFAILURE
FNERR_INVALIDFILENAME
CDERR_MEMLOCKFAILURE
FNERR_SUBCLASSFAILURE
:)
ive been tryin that from what i found on http://216.26.168.92/vbapi/ref/index.html#commondialog but its being very gay and sometimes returning a null value lol
oops wrong link :D - http://216.26.168.92/vbapi/ref/c/com...ndederror.html