Windows VS2013 Intro - Output Debug Info

来源:互联网 发布:房价还会上涨吗 知乎 编辑:程序博客网 时间:2024/06/10 02:20


TCHAR tt[1024];

wsprintf(tt, L"Width = %d\n", leftViewPort.Width);
OutputDebugString(tt);



Output to console


  if (AllocConsole())
  {
   freopen("CONOUT$", "w", stdout);
  }

  wprintf(L"Width = %d\n", leftViewPort.Width);

0 0
原创粉丝点击