다음을 통해 공유


afxDump(MFC의 CDumpContext)

Provides basic object-dumping capability in your application.

CDumpContext afxDump;

설명

afxDump is a predefined CDumpContext object that allows you to send CDumpContext information to the debugger output window or to a debug terminal. Typically, you supply afxDump as a parameter to CObject::Dump.

Under Windows NT and all versions of Windows, afxDump output is sent to the Output-Debug window of Visual C++ when you debug your application.

This variable is defined only in the Debug version of MFC. For more information on afxDump, see Debugging MFC Applications.

예제

// example for afxDump
CPerson* pMyPerson = new CPerson;
// set some fields of the CPerson object... 
//.. 
// now dump the contents
#ifdef _DEBUG
afxDump << _T("Dumping myPerson:\n");
pMyPerson->Dump(afxDump);
afxDump << _T("\n");
#endif

요구 사항

Header: afx.h

참고 항목

참조

CObject::Dump

AfxDump(MFC)

개념

MFC 매크로 및 전역