PDA

View Full Version : FileException



phillip_Qt
14th November 2007, 09:06
Hi all.
can any body tell me how o replace windows API CFileException and CMemoryException in Qt.

wysota
14th November 2007, 09:58
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.