#include <windows.h> 为什么不能放在 #include <tlhelp32.h> 后面
来源:互联网 发布:php实现sql防注入 编辑:程序博客网 时间:2024/04/27 14:18
转载自:http://www.myexception.cn/vc-mfc/722651.html
这样就没问题:
#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。
0 0
- #include <windows.h> 为什么不能放在 #include <tlhelp32.h> 后面
- 为什么在写C++程序时预编译头只能是#include<iostream>而不能是#include<iosteam.h>
- 为什么在vs 中用include<iostream.h>不行,而include<stdio.h>可用
- 为什么在vs 中用include<iostream.h>不行,而include<stdio.h>可用
- 学习笔记-#include <windows.h>
- 解决iostream.h在vc2008下不能被include
- 为什么要加#include "stdafx.h"
- 为什么要加#include "stdafx.h"
- 为什么要添加#include “stdafx.h”
- 为什么在vs 2005中用include “iostream.h”就不行,而用include "stdio.h"就可用
- #include stdio.h #include cstdio
- include *.c与 include *.h
- MFC工程中不要#include <windows.h>
- C++中#include<windows.h>相关说明
- MFC工程去掉#include <windows.h>
- MFC apps must not #include <windows.h>
- #include <sys/types.h>在哪里?
- #include <Windows.h> 和 <Winsock2.h>冲突的改进解决方案
- Python面向对象编程(4)——类的继承与方法重载
- 几种常见的激活函数
- NIO
- 使用AppBarLayout注意事项
- chrome非常好用的图片放大插件 Imagus
- #include <windows.h> 为什么不能放在 #include <tlhelp32.h> 后面
- Android 知识点梳理
- Java中利用for循环打印直角三角形,倒立直角三角形,等腰三角形,平行四边形,菱形等
- Java Servlet
- 【HDOJ】5996(BestCoder #90 B)dingyeye loves stone
- 停止Java线程,小心interrupt()方法
- log4j输出多个自定义日志文件,动态配置路径
- 将博客搬至博客园
- 蓝桥杯 ALGO-124 算法训练 数字三角形