pointers to HDC question

Started by
4 comments, last by harmless 20 years, 6 months ago
Hi everyone, yet another GDI question... how do i know if 2 pointers point to a common HDC?
Advertisement
Huh?
if(lpPointer1 == lpPointer2)...
wouldn''t that be?
if(*lpPointer1 == *lpPointer2)... 
AP''s got it. Why are you storing and/or passing pointers to HDCs anyway? Under the facade, HDCs are pointers, and are the same size as pointers to HDC. Just use standard semantics.

[twitter]warrenm[/twitter]

backing up the data in an array - eg multiple opengl rendering contexts in the same thread, or when two or more programs/threads share HDCs. that''s from experience anyway. lots of other reasons (another is when the HDC''s pointer may change whilst another more laggy thread is trying to update it - although that''s a bad thing for the HDC though)
Beer - the love catalystgood ol' homepage

This topic is closed to new replies.

Advertisement