Click here to Skip to main content
15,905,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problems with files Pin
Archer28230-Jul-04 6:41
Archer28230-Jul-04 6:41 
GeneralRe: Problems with files Pin
avenger_sb2530-Jul-04 8:13
avenger_sb2530-Jul-04 8:13 
GeneralRe: Problems with files Pin
Archer28230-Jul-04 6:57
Archer28230-Jul-04 6:57 
GeneralRe: Problems with files Pin
darkbyte30-Jul-04 14:20
darkbyte30-Jul-04 14:20 
GeneralResource Exception Pin
NadAzur30-Jul-04 4:43
NadAzur30-Jul-04 4:43 
GeneralRe: Resource Exception Pin
Jaime Stuardo30-Jul-04 4:52
Jaime Stuardo30-Jul-04 4:52 
GeneralRe: Resource Exception Pin
NadAzur30-Jul-04 5:25
NadAzur30-Jul-04 5:25 
GeneralRe: Resource Exception Pin
Jaime Stuardo30-Jul-04 5:40
Jaime Stuardo30-Jul-04 5:40 
Are you placing it in OnPaint method? if you are, that CreateCompatibleDC used is the global ::CreateCompatibleDC that expects a HDC as the parameter. That way, be sure the pDC is casted correctly to an HDC. By using the global API function, you will be returned an HDC for the new DC, which MUST be deleted when the DC is no longer needed.

Second, You are creating a compatible DC but you are not using it. You just continue using the old one.

Third, are you DeleteObject the bitmap you are creating?

Finally, if you are implementing a sort of double buffering, why not using a well tested class such as CMemDC which you can find in CodeProject? This class does all those affairs by you.

Jaime
GeneralRe: Resource Exception Pin
NadAzur30-Jul-04 19:16
NadAzur30-Jul-04 19:16 
GeneralRe: Resource Exception Pin
bikram singh31-Jul-04 16:44
bikram singh31-Jul-04 16:44 
GeneralMS Word Automation by using VC++ Pin
Jijo.Raj30-Jul-04 4:35
Jijo.Raj30-Jul-04 4:35 
GeneralRe: MS Word Automation by using VC++ Pin
Michael P Butler30-Jul-04 4:45
Michael P Butler30-Jul-04 4:45 
GeneralRe: MS Word Automation by using VC++ Pin
Jijo.Raj30-Jul-04 18:18
Jijo.Raj30-Jul-04 18:18 
GeneralRe: MS Word Automation by using VC++ Pin
Jaime Stuardo30-Jul-04 4:45
Jaime Stuardo30-Jul-04 4:45 
GeneralRe: MS Word Automation by using VC++ Pin
Jijo.Raj30-Jul-04 18:12
Jijo.Raj30-Jul-04 18:12 
QuestionHow to store the unrecognized characters in VC6.0+ADO+sql server2000 Pin
yuyi200330-Jul-04 4:26
yuyi200330-Jul-04 4:26 
AnswerRe: How to store the unrecognized characters in VC6.0+ADO+sql server2000 Pin
Jaime Stuardo30-Jul-04 4:57
Jaime Stuardo30-Jul-04 4:57 
GeneralRe: CRecordset open table Pin
David Crow30-Jul-04 4:24
David Crow30-Jul-04 4:24 
GeneralRe: CRecordset open table Pin
Manfred Staiger30-Jul-04 4:58
Manfred Staiger30-Jul-04 4:58 
GeneralTask Manager Pin
Jnewg530-Jul-04 4:08
Jnewg530-Jul-04 4:08 
GeneralRe: Task Manager Pin
jmkhael30-Jul-04 4:26
jmkhael30-Jul-04 4:26 
GeneralRe: Task Manager Pin
Jnewg530-Jul-04 4:37
Jnewg530-Jul-04 4:37 
GeneralRe: Task Manager Pin
jmkhael30-Jul-04 4:45
jmkhael30-Jul-04 4:45 
GeneralRe: Task Manager Pin
Michael P Butler30-Jul-04 4:36
Michael P Butler30-Jul-04 4:36 
GeneralRe: Task Manager Pin
Jnewg530-Jul-04 5:07
Jnewg530-Jul-04 5:07 

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.