初学VC不好意思,问一下。
解决方案 »
- 新建mfc dialogbox工程,我要获得CWinApp 这个class的指针怎么得到
- wndclass.cbClsExtra和wndclass.cbWndExtra有什么区别
- 请问我为什么一用PutCollect系统就报错啊!!!在sql server 里!!GetCollect却可以正常工作!好心的高手拜托了!!!
- 在VC6中怎样使用crystal reports 10 做一个简单的报表,高分求助!
- 救命帖!!我的程序又出怪病了~~任何一个二级界面只要按“返回”三到四次就提示非法操作
- Debug出现这样的问题是什么原因?
- 关于vc做的ATL Object dll的简单问题
- 有关图形的问题
- Kylix 2.0 已经发布了吗?这个版本支持C++吗?
- 如何截取系统关机信息并阻止关机?
- 紧急~~与WEB无关,却关乎所有中国人!!
- 求教点对点的WAP PUSH
如TRACE("test\n");
使用它先在Tools->mfc tracer里给Enable tracing打勾
TRACE1
TRACE2
TRACE3...都是这系列的,因为macro不能重载嘛。:)
是不是想要的,其实VC提供的调试手段比这好多了
int i = 1;
char sz[] = "one";
TRACE( "Integer = %d, String = %s\n", i, sz );
// Output: 'Integer = 1, String = one'// another example for TRACE
// Note that the TRACE() macro accepts a LPCTSTR for the format string
// parameter, while the other TRACEn() macros accept a LPCSTR.
// This means that you should use the _T() macro on formatting strings
// you supply if you want to build both _UNICODE and non-_UNICODE from
// the same source.TRACE(_T("Hockey is best!\n"));// remember to include <stdlib.h> to get rand() and its friendsint nCount = rand();
TRACE(_T("There are %d fans at this moment.\n"), nCount);