请单击以进行评分并提供反馈
MSDN
MSDN Library
Visual Studio
Visual C++
MFC
 TRACE3

  开启低带宽视图
此页面仅适用于
Microsoft Visual Studio 2008/.NET Framework 3.5

同时提供下列产品的其他版本:
MFC Library Reference
TRACE3

The TRACE macros are obsolete, use ATLTRACE2.

See TRACE0 for a description of the TRACE3 macro.

TRACE3(
      exp,
      param1,
      param2,
      param3 
)
exp

A format string as used in the run-time function printf.

param1

The name of the variable whose value should be dumped.

param2

The name of the variable whose value should be dumped.

param3

The name of the variable whose value should be dumped.

// Example for TRACE3
// get the display context
HDC hdc = ::GetDC(NULL);

// Get information about the display
int nVertRes = ::GetDeviceCaps(hdc, VERTRES);
int nHorzRes = ::GetDeviceCaps(hdc, HORZRES);
int nDepth = ::GetDeviceCaps(hdc, BITSPIXEL);

// Done with the DC, give it back
::ReleaseDC(hdc);

// Tell the user
TRACE3("Your screen is at %d by %d resolution, with %d bits per pixel\n",
   nHorzRes, nVertRes, nDepth);

Header: afx.h

社区内容   什么是社区内容?
添加新内容 RSS  批注
Processing
© 2009 Microsoft Corporation 版权所有。 保留所有权利  |  商标  |  隐私权声明
Page view tracker