• Advertisement

Archived

This topic is now archived and is closed to further replies.

pointers to HDC question

This topic is 5232 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi everyone, yet another GDI question... how do i know if 2 pointers point to a common HDC?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Huh?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
wouldn''t that be?

if(*lpPointer1 == *lpPointer2)...

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites

  • Advertisement