我在Vc6.0中加载EasyX后出现了“HWND initgraph(int* gdriver, int* gmode, char* path);”中给出了错误

错误分别是这三个:
error C2146: syntax error : missing ';' before identifier 'initgraph'

error C2501: 'HWND' : missing storage-class or type specifiers

fatal error C1004: unexpected end of file found

求大神指导!!

你要把代码贴出来才行。还有,你用的哪个版本的 easyx?如果不是最新的,先升级一下。还有一个需要检查的地方,看看你的 vc 的 include 文件夹里面,有没有 windows.h 这个文件?有的 vc 不完整。你可以到 easyx 贴吧置顶帖下载 vc6 修复再试试。
温馨提示:答案为网友推荐,仅供参考
相似回答