Prev: MFC examples
Next: creating a JPEG file
From: Eric Margheim on 13 Jun 2006 16:58 "Doug Harrison [MVP]" <dsh(a)mvps.org> wrote in message news:7m7u82pe6nsq2v43ihgnsplvemk3qlo89f(a)4ax.com... > On Tue, 13 Jun 2006 15:10:26 -0500, "Eric Margheim" > <NOSPAM***eric(a)prism-grp.com***NOSPAM> wrote: > >>This is bad code too evidentally. >> >>throw new CException(TRUE); > > Since the class is now abstract, yes. > How shoud I code it now? This isn't my original code I'm just working through it. Do I have to derive a class from it first?
From: Doug Harrison [MVP] on 13 Jun 2006 18:08
On Tue, 13 Jun 2006 15:58:54 -0500, "Eric Margheim" <NOSPAM***eric(a)prism-grp.com***NOSPAM> wrote: >How shoud I code it now? This isn't my original code I'm just working >through it. Do I have to derive a class from it first? That's your safest bet. You could use one of the other predefined exception types, but then you'd run the risk of catching it in a handler for that type, so I wouldn't recommend doing that. -- Doug Harrison Visual C++ MVP |