这样就没问题:
#include <windows.h>#include <TLHELP32.H>#include <iostream>using namespace std;这样就报错:
#include <TLHELP32.H>#include <windows.h>#include <iostream>using namespace std;//error C2146: syntax error : missing ';' before identifier 'WINAPI'//error C2501: 'HANDLE' : missing storage-class or type specifiers//fatal error C1004: unexpected end of file found——解决方案—— 因为TLHELP32.H中的一些宏定义是在windows.h中的,所以先包含windows.h。
新闻热点
疑难解答