Click here to Skip to main content
16,005,339 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPointer question? Pin
16-May-02 22:56
suss16-May-02 22:56 
AnswerRe: Pointer question? Pin
markkuk16-May-02 23:21
markkuk16-May-02 23:21 
AnswerRe: Pointer question? Pin
Nish Nishant16-May-02 23:33
sitebuilderNish Nishant16-May-02 23:33 
GeneralRe: Pointer question? Pin
19-May-02 15:58
suss19-May-02 15:58 
GeneralSluggishness Pin
LittleYellowBird16-May-02 22:48
LittleYellowBird16-May-02 22:48 
GeneralRe: Sluggishness Pin
PJ Arends16-May-02 23:45
professionalPJ Arends16-May-02 23:45 
GeneralRe: Sluggishness Pin
LittleYellowBird17-May-02 1:03
LittleYellowBird17-May-02 1:03 
GeneralRe: Sluggishness Pin
benjymous17-May-02 4:20
benjymous17-May-02 4:20 
Do you use GetDC() [or equivalents] at all?

I mistake I've made in the past was to have calls like this

SomeFunctionThatNeedsADC( GetDC() );

which allocates a DC, but never frees it, meaning you gradually run out of resources. The proper way is
CDC* pDC;
pDC = GetDC();
SomeFunctionThatNeedsADC( pDC );
ReleaseDC( pDC );



Also note that Windows2k/XP has much better resource handling to 9x so if you find your prog runs fine on 2k but gradually dies in 9x, then it probably is a resource problem

--
Help me! I'm turning into a grapefruit!
GeneralRe: Sluggishness Pin
Mike Nordell17-May-02 0:06
Mike Nordell17-May-02 0:06 
GeneralRe: Sluggishness Pin
LittleYellowBird17-May-02 1:49
LittleYellowBird17-May-02 1:49 
GeneralRe: Sluggishness Pin
Mike Nordell21-May-02 5:39
Mike Nordell21-May-02 5:39 
General"Boost" Library and VC++ Pin
16-May-02 22:39
suss16-May-02 22:39 
GeneralRe: "Boost" Library and VC++ Pin
Aaron Schaefer17-May-02 6:46
Aaron Schaefer17-May-02 6:46 
GeneralBig Endian file format Pin
Philip Patrick16-May-02 22:38
professionalPhilip Patrick16-May-02 22:38 
GeneralRe: Big Endian file format Pin
David Chamberlain17-May-02 3:33
David Chamberlain17-May-02 3:33 
GeneralRe: Big Endian file format Pin
Philip Patrick17-May-02 4:05
professionalPhilip Patrick17-May-02 4:05 
GeneralRe: Big Endian file format Pin
David Chamberlain17-May-02 4:19
David Chamberlain17-May-02 4:19 
GeneralCosmetic interfaces' problem Pin
Hans Ruck16-May-02 22:02
Hans Ruck16-May-02 22:02 
QuestionHow to make the server to only accept.... Pin
Rickard Andersson2016-May-02 20:43
Rickard Andersson2016-May-02 20:43 
AnswerRe: How to make the server to only accept.... Pin
Nish Nishant16-May-02 21:42
sitebuilderNish Nishant16-May-02 21:42 
GeneralRe: How to make the server to only accept.... Pin
Rickard Andersson2016-May-02 22:27
Rickard Andersson2016-May-02 22:27 
GeneralRe: How to make the server to only accept.... Pin
Nish Nishant16-May-02 22:46
sitebuilderNish Nishant16-May-02 22:46 
GeneralRe: How to make the server to only accept.... Pin
Rickard Andersson2017-May-02 0:09
Rickard Andersson2017-May-02 0:09 
GeneralRe: How to make the server to only accept.... Pin
Nish Nishant17-May-02 16:00
sitebuilderNish Nishant17-May-02 16:00 
GeneralRe: How to make the server to only accept.... Pin
17-May-02 2:55
suss17-May-02 2:55 

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.