Link to home
Start Free TrialLog in
Avatar of tom1234
tom1234Flag for Korea, Republic of

asked on

what is :: in MFC

for example
if ( CFrameWnd::OnCreate(lpCReateStruct) == 1 )

what is the meaning of ::  
I just thought it is a inheritance
Avatar of Brendan M
Brendan M
Flag of Australia image

CFrameWnd::OnCreate
^^ Class           ^^ Member of class
It's not about MFC. In C++ program any variable is visiable in a certain part of the application. In your case, you say to call method OnCreate from CFrameWnd class. CFrameWnd is a base class in this case.
 
BTW, the name is "scope resolution operator".
ASKER CERTIFIED SOLUTION
Avatar of pgnatyuk
pgnatyuk
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial