vc头文件转pas
#define MM_PACKET_SIZE0x20//MIN 32
#define MM_DMFC_READFLOW0x0001
#define MM_DMFC_SETPOINT0x0002
#define MM_DMFC_READALARM0x0003
#define MM_DMFC_CLEARALARM0x0004//1
#define MM_DMFC_CONTROLMODE0x0005//0 digital, 1 voltage, 2 current
#define MM_DMFC_VALVEMODE0x0006//0 regulation1 close2 open
#define MM_DMFC_CLEARZERO0x0007//1 ClearZero
#ifndef _Compiler
#define _Compiler
#endif
#ifdefDLLLIB
#else
#define DLLLIB extern "C" _declspec(dllimport)
#pragma comment(lib,"DmfcCommonDll.lib")
#endif
DLLLIBDWORD_Compiler SendFormat(DWORD dwAddress,DWORD dwType,const char* szData,DWORD &nLen,char* szBuffer,DWORD nBufferSize);
DLLLIBBOOL_Compiler ReceiveChar(char ch);
DLLLIBVOID_Compiler GetDMFCData(char *pBuffer,DWORD size);//ASCII
DLLLIBDWORD_Compiler GetDMFCCommand();
DLLLIBCHARDMFCData[MM_PACKET_SIZE];
DLLLIBDWORDDMFCCommand;
上面是vc的头文件,有没有高手能帮我改写成pas文件啊,我想在delphi里调用vc的dll文件,谢谢!
[解决办法]
他这个是静态文件,不是动态文件.DELPHI里用不了的