Ok, ok, ok.
So MS didn't like the C++ language the way it was. So they made it 'easier' with crap like this:
And I've seen afx_msg void Func_name(). Unless afx_msg means virtual...what else is going to go in front of void in a C++ program??Code:/ Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMapView) protected: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual void OnInitialUpdate(); // first time after construct //}}AFX_VIRTUAL
And what the heck is //{{ //}}?
Oh and to create a class with a PROTECTED constructor I don't make the constructor public...I use this:
Wow thanks MS, that really clears the air for me.Code:CRuntimeClass* pRuntimeClass = RUNTIME_CLASS( CMyClass ); CObject* pObject = pRuntimeClass->CreateObject(); ASSERT( pObject->IsKindOf( RUNTIME_CLASS( CMyClass ) ) );
What the heck is all this garbly gook and how am I supposed to use it? I feel like I'm learning an entirely new language here.
Too many macros.