|
-
July 26th, 2009, 02:26 PM
#1
Call a function in a higher level class?
This is just about as confusing to explain as to figure out... but, maybe it isn't as hard to do as I am beginning to think it is....
We have a class called Acct. In this class there is a function called UpdateNames. This account calls another class called AcctTabs by assigning an public variable within this class called m_tbctrl
The AcctTabs is a CTabctrl derived class. In this class, several tabs are defined and the appropriate classes called to display their dialogs on the appropriate tabs. One of the tabs is calling a class AcctList by assigning a public variable within this class called tabAcctList
The AcctList is a standard CDialog derived class. There is a function within this class that does some internal updating. When this function is fired, I need to call the UpdateNames function in the Acct class.
Every way I try to call it, I get compile errors. I am not an expert at C++ but pretty knowledgeable. Also, this is VC++ v6 if that matters.
Any suggestions?
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
|