This is used in situations where you have function in your class with its name same as one in win32 API(global function) function name. for example, within the Visual studio file
"AFXWIN.h", we have a function called
AfxMessageBox()
. suppose you have a class CMyClass. It also has a function called AfxMessageBox(). your class header includes the file "AFXWIN.h".
#include <afxwin.h>
....
....
class MyClass
{
....
int AfxMessageBox(...)
{
}
....
}
.........</afxwin.h>
When you call the function AfxMessageBox() from your class, it will point to the member function AfxMessageBox() in your class. But what if you want to call the MFC function AfxMessageBox()??.
That time you call it like
::AfxMessageBox()