我想调试命令行模式下的cpp文件,功能很简单,结果运行一结束dos窗口就自动关了,于是想调用一个api,sleep,让程序等几秒钟让我看结果,include了winbase.h头文件,编译时就出现以下错误:
程序中没有引用winbase.h时运行正常,加了引用后出了问题,错在哪儿呢?请问,难首是ms的头文件有这么多错误吗?f:\program files\microsoft visual studio\vc98\include\winbase.h(216) : error C2146: syntax error : missing ';' before identifier 'Internal'
f:\program files\microsoft visual studio\vc98\include\winbase.h(216) : error C2501: 'DWORD' : missing storage-class or type specifiers


chap1_1.obj - 74 error(s), 0 warning(s)
发贴时说贴子太长,我省略了一大部分错误提示