0
// In the class declaration

protected:

virtual const AFX_MSGMAP* GetMessageMap() const;

// In the class implementation
const AFX_MSGMAP* CMainWindow::GetMessageMap() const
{ return &CMainWindow::messageMap; }

What is the meaning of the "const" keyword at the end of the sentence? I am not very familiar with C++ language and I have never seen anything like this in C language.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278

0 Answers0