我用VC6.0进行编译,将其放在first.c文件里面,代码如下
#include
//#include "fltuser.h"
__declspec(dllexport) int add(int a, int b);
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
int add(int a,int b)
{
return a+b;
}
如果不注释掉#include "fltuser.h",就提示:
d:\work\mystrength\kernel\cdll3\fltuser.h(68) : fatal error C1083: Cannot open include file: 'fltUserStructures.h': No such file or directory
因为fltuser.h里面有一段代码是 #include
如果我将其fltuser.h里面的代码改为 #include "fltUserStructures.h",又报错如下:
d:\work\mystrength\kernel\cdll3\fltuserstructures.h(22) : fatal error C1012: unmatched parenthesis : missing ')'
不知道应该如何解决,希望版主能够帮帮忙!