|
-
Apr 29th, 2002, 08:05 PM
#1
Thread Starter
Member
Casting a CRect object/pointer to a CObject pointer
I am trying to use the following line of code to cast a CRect to a CCbject:
CObject* pHint=DYNAMIC_DOWNCAST(CObject, mRects[x][y]);
but I get an error stating "none of the two overloads can convert parameter 2 from type 'Class CRect*'"
I need this to use in CView OnUpdate so that I only redraw part of the screen.
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
|