我这个程序错了吗?
//Lpt.cpp#include <windows.h>
#include <conio.h>
//DLL的入口函数
BOOL WINAPI DLLEntrePoint(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason,//reason for calling function
LPVOID lpvReserved) // reserved
{switch (fdwReason)
{case DLL_PROCESS_ATTACH:
{//可加入初始化代码
break;}
case DLL_PROCESS_DETACH:
{//可加入清除代码
break;}}
return true;}
Unsigned char InPort(unsigned int port)
{return _inp(port);}
int OutPort(unsigned int port,unsigned char value)
{_out(port,value);
return 1;}
LIBRARY LPT
DESCRPRPTION "Lpt.dll"
CODE PRELOAD MOVEABLE DDSCARDABLE
DATA PRELOAD SINGLE
EXPORTS
Inport @1
Outport @2
为什么在VC6.O中编译不了啊?
请高手指点一下