1. VC++6.0 建一个工程
File-->new-->project-->win32 Application
选A Simple Win32 application
-
int APIENTRY WinMain(HINSTANCE hInstance,
-
HINSTANCE hPrevInstance,
-
LPSTR lpCmdLine,
-
int nCmdShow)
-
{
-
// TODO: Place code here.
-
OutputDebugString("hello,world\r\n");
-
return 0;
-
}
2. 打开DebugView (版本4.81)
a. compute --> connect local (默认情况下,打开软年就是这个选项)
b. capture --> 同时选中 capture win32 与 capture Events
3.运行刚才的win32程序,则DebugView中就会有输出
阅读(1239) | 评论(0) | 转发(0) |