错误指向了wincrypt.h里面:
#if(_WIN32_WINNT >= 0x0400)#ifdef __cplusplus
extern "C" {
#endif#ifndef _HRESULT_DEFINED
#define _HRESULT_DEFINED
typedef LONG HRESULT;错误:
error C2146: syntax error : missing ';' before identifier 'HRESULT'
fatal error C1004: unexpected end of file found
#if(_WIN32_WINNT >= 0x0400)#ifdef __cplusplus
extern "C" {
#endif#ifndef _HRESULT_DEFINED
#define _HRESULT_DEFINED
typedef LONG HRESULT;错误:
error C2146: syntax error : missing ';' before identifier 'HRESULT'
fatal error C1004: unexpected end of file found
解决方案 »
- 我建了一个MFC中基于对话框的程序,单击对话框上的按钮 弹出另一个对话框怎么实现
- 问关于遍历对话框的控件问题
- 关于ImageDirectoryEntryToData的使用(如何获得其它进程的地址)
- 一个好大的问题
- AfxGetApp()->GetMainWnd()和AfxGetMainWnd()的区别??
- 如何在VC中如何使用MIDL,在线等待
- 下周考C语言的免修,突然发现我对指针其实不了解,怎么办啊!~~~~~~~~~
- vs2008MFC智能设备应用程序无法添加web引用。
- 怎样在程序运行时增加子菜单(要增加的数目是未知的)
- 请问网络编程看什么书好啊?请给我推荐一本好书吧。
- 怎样设置活跃窗口?怎样给此窗口发送点击鼠标左键的消息?
- 怎样在基于对话框的程序中显示一个数字?
我是控制台程序,包含有下列头文件:
#define _WIN32_WINNT 0x0400
#include <wincrypt.h>#include <winsock2.h>
#include <map>
using namespace std;
#define WINVER 0x0400 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。
#endif#ifndef _WIN32_WINNT // 允许使用 Windows NT 4 或更高版本的特定功能。
#define _WIN32_WINNT 0x0400 //为 Windows98 和 Windows 2000 及更新版本改变为适当的值。
#endif