Evc 4.0 调试宏

evc 4.0 相关的资料少得真是可怜,记录下来大家少走弯路,如果能够帮助你,我就很欣慰了

在Debug窗口输出信息,使用调试宏命令
DEBUGMSG(Expression, Message)
Expression 嗯,提示如果想输出就必须值为true,废话吧~我们可以当条件满足的时候输出信息~
Message就是输出信息,必须用()扩起来
看这个代码
DEBUGMSG(1,(_T("Key Code value is  %d.\n"),lpnmh->code));
注意Message的格式


ERRORMSG和这个类似,他还可以输出prefixed by the word ERROR and the current file and line number,
就是前缀是ERROR或者出错的文件和哪一行
原文地址:https://www.cnblogs.com/iHqq/p/843564.html