|
From: Per W. <pw...@ia...> - 2005-02-23 07:37:38
|
The try/catch code looks correct.
However, you must either declare the class CFileException, or #include a
file that declares it. The MFC application framework has a CFileException
class.
/Per W
On Wed, 23 Feb 2005 A_B...@gm... wrote:
> Hi,
> in standart C/C++ I learned this syntax:
>
> try{
> // some code
> }catch(CFileException* e){
> // some code
> e->Delete();
> }
>
> but Dev says "syntax error before '*' token" !!!
> Well, I think CFileException was not declared !?!?!
> What is the correct use of "catch" with Dev-C++ ????
>
> thx, Acki
>
>
|