C++ Notes
File DLL's:: MFC Based(_USRDLL) Advanced MFC(Class across the boundary)(_AFXDLL)
PROBS CHECK PROJECT OPTIONS !! CHECK FOR CURRENT LIBRARIES !!
Call to undefined Dynalink - found the DLL but no fn!!!
SLOW MENUS - Bring up a debug window - see the messages otherwise destined for aux !!(Then give a prompt for all items)
PROG will not run - no window MENU in resources Will not compile - check linked windows libraries Note: If there is a an ON_UPDATE_COMMAND_UI then it processes the ENABLE / DISABLE OTHERWISE if HANDLER ENABLE else DISABLE CPP NOTES The status bar takes its queue from the string associated with the control ID (make sure you have recompiled the program after you add the string to the string table - not just bound resources!)
Why have Virtual Functions ? Virtual functions: When you call a VF through a pointer to a base class then the derived class' version of the function is executed. This is the opposite behavior from ordinary member functions. Polymorphism eliminates the need for type dependent switch statements. -> Dynamic binding
Functions which are not in the main implementation file are PROTECTED by default!! If you declared them public in the header file then they will not be found.
Returning a pointer to a ASCIIZ string and equating it to a CString does not work; eg: char *s(int x) { function body} CString cstr=s(2); will not work