主题:unexpected end of file 怎么修改
动态链接库源文件
∥DLL源文件I0.CPP
#include <windows.h>
#include<conio.h>
int FAR PASCAL outport(unsigned)
short sport);
int FAR PASCAL outport(unsigned short port,int databyte);
∥D11EntryPoint函数
BOOL WINAPI D11EntryPoint
(HINSTANCE hD11,
DWORDdwReason,
LPVOID Reserved)
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_PROCESS_DETACH:
{
break;
}
}
return TRUE;
}
∥两个功能函数
int FAR PASCAL inport(unsigned short port)
{
return(_inp(prot);
)
int FAR PASCAL outport(unsigned short port,int databyte)
{
int a;
a=_outp(port,databyte);
return a;
}
∥模块定义文件I0.DEF
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD SINGLE
EXPORTS
inport
outport
错误提示:unexpected end of file while looking for precompiled header directive
执行 cl.exe 时出错.
请问各位这个错误怎么改正?
∥DLL源文件I0.CPP
#include <windows.h>
#include<conio.h>
int FAR PASCAL outport(unsigned)
short sport);
int FAR PASCAL outport(unsigned short port,int databyte);
∥D11EntryPoint函数
BOOL WINAPI D11EntryPoint
(HINSTANCE hD11,
DWORDdwReason,
LPVOID Reserved)
{
switch(dwReason)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_PROCESS_DETACH:
{
break;
}
}
return TRUE;
}
∥两个功能函数
int FAR PASCAL inport(unsigned short port)
{
return(_inp(prot);
)
int FAR PASCAL outport(unsigned short port,int databyte)
{
int a;
a=_outp(port,databyte);
return a;
}
∥模块定义文件I0.DEF
CODE PRELOAD MOVEABLE DISCARDABLE
DATA PRELOAD SINGLE
EXPORTS
inport
outport
错误提示:unexpected end of file while looking for precompiled header directive
执行 cl.exe 时出错.
请问各位这个错误怎么改正?