Results 1 to 4 of 4

Thread: common dialog via api

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    common dialog via api

    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

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    MSDN Sez :
    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
    That's for GetOpenFileName.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    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

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width