Click here to Skip to main content
15,911,785 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How safe is this code? Pin
A.A.22-Jun-02 19:30
A.A.22-Jun-02 19:30 
AnswerRe: How safe is this code? Pin
Mike Nordell23-Jun-02 17:45
Mike Nordell23-Jun-02 17:45 
GeneralCHANGE TEXT FIELD Pin
TommyKnocker22-Jun-02 3:13
TommyKnocker22-Jun-02 3:13 
GeneralRe: CHANGE TEXT FIELD Pin
22-Jun-02 3:22
suss22-Jun-02 3:22 
GeneralRe: two coding questions Pin
Alan Chambers22-Jun-02 3:11
Alan Chambers22-Jun-02 3:11 
GeneralRe: two coding questions Pin
redeemer22-Jun-02 7:58
redeemer22-Jun-02 7:58 
GeneralRe: two coding questions Pin
Alan Chambers22-Jun-02 8:02
Alan Chambers22-Jun-02 8:02 
GeneralRe: two coding questions Pin
Mike Nordell23-Jun-02 18:00
Mike Nordell23-Jun-02 18:00 
throw (ifstream::failure) doesn't work

That's expected. First you used a syntax that isn't anywhere close C++, then you tried to throw an exception of a class that needs an argument. You might try
throw ifstream::failure("foo");

But I'd say you've got a design error if you want to throw an exception on behalf of someone else like this. Your code is then basically lying (even if it's you that catches that same execption).

Step back a second and think: Would you want to maintain that code in two, five or ten years from now?

If you're interested in failures, not just the ones that throw "ios_base<...>::failure", why not catch "exception" (as "const std::exception&" of course).

Why does my DirecDraw primary surface back buffer throw up multi-coloured junk when I flip to it using a high resolution and 32 bit display?

Because you haven't painted into the back-buffer! Check the return values of every call to DirectDraw.
GeneralI need some help on this prg Pin
steve_cluj22-Jun-02 2:59
steve_cluj22-Jun-02 2:59 
GeneralRe: I need some help on this prg Pin
22-Jun-02 4:25
suss22-Jun-02 4:25 
GeneralRe: I need some help on this prg Pin
jferrell121122-Jun-02 7:21
jferrell121122-Jun-02 7:21 
GeneralCScrollView Question Pin
Joel Holdsworth22-Jun-02 1:47
Joel Holdsworth22-Jun-02 1:47 
GeneralRe: CScrollView Question Pin
jferrell121122-Jun-02 7:49
jferrell121122-Jun-02 7:49 
GeneralAddress Book Pin
Nish Nishant22-Jun-02 0:38
sitebuilderNish Nishant22-Jun-02 0:38 
GeneralRe: Address Book Pin
Nish Nishant22-Jun-02 0:53
sitebuilderNish Nishant22-Jun-02 0:53 
GeneralRe: Address Book Pin
Manish Hatwalne22-Jun-02 0:56
Manish Hatwalne22-Jun-02 0:56 
GeneralRe: Address Book Pin
Nish Nishant22-Jun-02 1:06
sitebuilderNish Nishant22-Jun-02 1:06 
GeneralVC .NET add member variable Pin
22-Jun-02 0:08
suss22-Jun-02 0:08 
Generalmodel & modeless dialog box. Pin
vikramlinux22-Jun-02 0:03
vikramlinux22-Jun-02 0:03 
GeneralRe: model & modeless dialog box. Pin
Nish Nishant22-Jun-02 0:36
sitebuilderNish Nishant22-Jun-02 0:36 
GeneralRe: model & modeless dialog box. Pin
vikramlinux22-Jun-02 1:11
vikramlinux22-Jun-02 1:11 
GeneralRe: model & modeless dialog box. Pin
Nish Nishant22-Jun-02 1:41
sitebuilderNish Nishant22-Jun-02 1:41 
GeneralRe: model & modeless dialog box. Pin
vikramlinux22-Jun-02 2:39
vikramlinux22-Jun-02 2:39 
GeneralC++ Class Help!!! Pin
calebcohoon21-Jun-02 18:44
calebcohoon21-Jun-02 18:44 
GeneralRe: C++ Class Help!!! Pin
Christian Graus21-Jun-02 19:49
protectorChristian Graus21-Jun-02 19:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.