当前位置: 代码迷 >> VC >> error C2143: 语法异常 : 缺少“)”(在“*”的前面) 头文件也加上了. 为什么
  详细解决方案

error C2143: 语法异常 : 缺少“)”(在“*”的前面) 头文件也加上了. 为什么

热度:428   发布时间:2016-05-05 00:11:01.0
error C2143: 语法错误 : 缺少“)”(在“*”的前面) 头文件也加上了. 为什么?
刚好要做一个程序的黑屏优化。
参照的帖子地址是 http://s1.zetaboards.com/hLibrary/topic/748957/1/
编译时死活通不过。
用的开发环境 VS 2012 win7(64)


如果谁有现成的WIN7 64位下 游戏黑屏的代码 可以发一份给小弟,在此谢过。。。
邮箱地址:[email protected]

#include "stdafx.h"

#pragma comment(lib, "Detours/detours.lib")
#include "Detours/detours.h"

#include "ID3D9Wrapper.h"

#ifdef __cplusplus
extern "C"
{
#endif
DETOUR_TRAMPOLINE(IDirect3D9* WINAPI Real_Direct3DCreate9(UINT SDKVersion), Direct3DCreate9);
#ifdef __cplusplus
}
#endif

HANDLE HookHandle = NULL;

DETOUR_TRAMPOLINE(IDirect3D9* WINAPI Real_Direct3DCreate9(UINT SDKVersion), Direct3DCreate9);

IDirect3D9* WINAPI Mine_Direct3DCreate9(UINT SDKVersion)
{
IDirect3D9* Direct3D = Real_Direct3DCreate9( SDKVersion );
IDirect3D9* Mine_Direct3D = new Direct3D9Wrapper( Direct3D );
return Mine_Direct3D;
}


贴上报错的图片

------解决方案--------------------
感觉你缺少必要的头文件
------解决方案--------------------
detours.h
------解决方案--------------------
#include "Detours/detours.h"
缺少头文件,检查相关的路径设置
  相关解决方案