ACCESS FUNCTION OF ANOTHER CLASS
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
I'm trying to access function in a class which is defined in another class. I've tried to declare it as a friend, however this won't work for me. Suggestions much appreciated Kind Regards Caoimh
First either make the methods in the other class as public, or declare ClassB(from the class you are trying to access) as friend in ClassA(whose methods you are trying to access) other way friendship does not work, its not mutual.:)
MSN Messenger. prakashnadar@msn.com
-
I'm trying to access function in a class which is defined in another class. I've tried to declare it as a friend, however this won't work for me. Suggestions much appreciated Kind Regards Caoimh