Click here to Skip to main content
16,007,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do i change the name of my project and workspace? Pin
Brad Bruce22-Jun-02 9:42
Brad Bruce22-Jun-02 9:42 
AnswerRe: How do i change the name of my project and workspace? Pin
Mike Nordell23-Jun-02 17:36
Mike Nordell23-Jun-02 17:36 
QuestionHow safe is this code? Pin
User 665822-Jun-02 4:39
User 665822-Jun-02 4:39 
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 
Hi all, I have a couple of quick questions that I really need an answer to.

1.) I have the following code:

try
{
//reads in info from file
}
catch(ifstream::failure)
{
//deals with error
}

How do I MANUALLY throw an exception so it is caught by this code (I don't want to wait for the failbit to be set).

2.) 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? If I write to this "junk" on the surface, exit the app, delete the code that writes to the surface and then restart the app, the junk is displayed as it was before, even though I haven't written to it (seems like it is accessing same area of memory for back buffer???). The initial surface is fine (plain black) and can be written to and flipped to fine, but the back buffer can't. I don't get any problems using 16 bit display at any res. The code I used is straight out of the DirectDraw SDK docs. I'm just wondering if anyone had the same problem and how they resolved it?

Obviously I'd appreciate a full answer to the questions, but any ideas or links to web pages that may answer them would be just as brilliant.

Alan.
"When I left you I was but the learner, now I am the master" - Darth Vader
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 
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 

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.