METHOD_PROLOGUE_EX or METHOD_PROLOGUE?
Michael S. Scherotter -- mss@tartus.com Monday, June 10, 1996 Using MFC 4.1: When should I use METHOD_PROLOGUE_EX() and when should I use METHOD_PROLOGUE() for the CCmdTarget::IUnknown implementation? Michael Michael S. Scherotter |Architectural Design Tools Lead Software Developer |AutoCAD Applications Tartus Development, Inc. |Custom CAD Solutions 630 Las Gallinas Ave #300 |__________________________ San Rafael, CA 94903 mss@tartus.com (415) 491-8925 michael@charette.com (415) 491-8921 (fax) 71035.1675@compuserve.com http://www.tartus.com/people/mss ____________________________________________________________
Roger Onslow -- Roger_Onslow@compsys.com.au Wednesday, June 12, 1996 >When should I use METHOD_PROLOGUE_EX() >and when should I use METHOD_PROLOGUE() >for the CCmdTarget::IUnknown implementation? Michael, METHOD_PROLOGUE_EX is *usually* exactly the same as METHOD_PROLOGUE EXCEPT... when _AFX_NO_NESTED_DERIVATION is undefined. BUT... In MFC4, _AFX_NO_NESTED_DERIVATION is always defined (in AFXVER_.H which is included in AFX.H) So I guess in normal MFC, you don't need the _EX version. (or more exactly, it doesn't matter if you do) I think _AFX_NO_NESTED_DERIVATION used to be needed for OLE controls pre MFC 4 See also KB... PRB: Problems Occur When Defining _AFX_NO_XXX - PSS ID Number: Q140751 which warns against changing _AFX_NO_NESTED_DERIVATION (amongst others) See also KB... PRB: FromIDispatch Returns NULL for OLE Control - PSS ID Number: Q138414 which talks about this and says no longer required in MFC4 Hope this helps... Roger Onslow
| Вернуться в корень Архива |