Results 1 to 2 of 2

Thread: FileException

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2007
    Posts
    201
    Thanks
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question FileException

    Hi all.
    can any body tell me how o replace windows API CFileException and CMemoryException in Qt.
    Cheers,
    Phillip



    --- Please post the solution you got to solve your problem. It may help others.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: FileException

    These are MFC, not WinAPI, the latter is C based

    How to replace them? It depends what do you use them for. Qt doesn't throw any exceptions so basically you'll have to query the QFile object you use for its state. Most of the methods will also return the result - like true and false. You might check the result to see if the method succeeded or not.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.