如何编写这样的宏
各位大哥:
程序如下:
void CDtestDlg::Ontest()
{
// TODO: Add your control notification handler code here
int a=10, b=11;
CString ttt;
ttt.Format("a = %d, b =%d", a, b);
MessageBox(ttt);
}
请问如何将
CString ttt;
ttt.Format("a = %d, b =%d", a, b);
MessageBox(ttt);
这3句话写成一个通用的宏,宏输入格式要求类似与TRACE这个宏,作用同以上3句话。