|
-
February 27th, 2004, 03:26 AM
#1
accessing variable that belongs to aother class
Hello
I have a member variable in the class CSpanaView,called ZoomIndicator. I want to access that variable in aother class CFastZoom. Below is the code by me to do above task
CFastZoom::OnCancel()
{
CSpanaView *ptSpana;
ptSpana->ZoomIndicator=FALSE;
}
but there is a memory exception when i run the code above
ZoomIndicator is a bool
Please help me!Thank You!
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
|