|
-
March 14th, 2009, 05:00 PM
#12
Re: Drawing from Object
Your problem has NOTHING to do with Graphics, or even with with Windows programming. It is simple basic flaws in your logic.
For example, given the posted code (btw: you should ALWAYS post a minimal yet complete - compilable, runnable - that duplicates the error...)
Your class has an m_pWnd which you are using, but I do not see any place where it is initialized.
Then later you try to treat your object as if it WAS a CWnd, but it clearly is not.
TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
2008, 2009,2010
In theory, there is no difference between theory and practice; in practice there is.
* Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions 
* How NOT to post a question here
* Of course you read this carefully before you posted
* Need homework help? Read this first
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|