下面的代码是一个DLL动态库的BCB函数请问那位大虾可以帮我改成DELPHI(100分)

  • 主题发起人 主题发起人 mmlmm
  • 开始时间 开始时间
M

mmlmm

Unregistered / Unconfirmed
GUEST, unregistred user!
下面的代码是一个DLL动态库的BCB函数请问那位大虾可以帮我改成DELPHI

谢谢
////////////////////////////////////////////////////////////////begin
void* OpenDevice(int nMyAddress, HWND hWnd)
void CloseDevice(void* pDevice)
void SetMyAddress(void* pDevice, int nAddress)
BOOL ConnectPort(void* pDevice, LPCTSTR lpCommDef)
BOOL IsConnect(void* pDevice)
void SetAddLog(void* pDevice, BOOL bAddLog)
void SetCommKey(void* pDevice, LPCTSTR lpCommKey)
void SetInnerCode (void* pDevice, BOOL bBig5)
BOOL DisConnectPort(void* pDevice)
void SetWaitTime(void* pDevice, DWORD dwWaitTime)
void* StartICDMCommand(void* pDevice, int nAddress, int nCommand,
void* pParameters = NULL, int nSizeOfParameter = 0)
int GetSizeOfData(void* pCommand)
BOOL GetData(void* pCommand, void* pDataBuffer, int nSize)
int GetCmdResult(void* pCommand)
void EndICDMCommand(void* pCommand)
void RecvEdition(LPTSTR lpEdition)
///////////////////////////////////////////////////////////////////end
 
////////////////////////////////////////////////////////////////begin
function OpenDevice(nMyAddress:integer;hWnd:HWND):pointer;
Procedure CloseDevice(pDevice:pointer);
Procedure SetMyAddress(pDevice:pointer;nAddress:integer);
function ConnectPort(pDevice:pointer;lpCommDef:未知):BOOLEAN;
function IsConnect(pDevice:pointer):BOOLEAN;
Procedure SetAddLog(pDevice:pointer;bAddLog:BOOLEAN);
Procedure SetCommKey(pDevice:pointer;lpCommKey:未知);
Procedure SetInnerCode (pDevice:pointer;bBig5:BOOLEAN);
function DisConnectPort(pDevice:pointer):BOOLEAN;
Procedure SetWaitTime(pDevice:pointer;dwWaitTime: DWORD );
function StartICDMCommand(pDevice:pointer;nAddress:integer;nCommand:integer
[;pParameters:pointer = NULL][
nSizeOfParameter:integer = 0]):pointer;
function GetSizeOfData(pCommand:pointer):integer;
function GetData(pCommand:pointer;pDataBuffer:pointer;nSize:integer):BOOLEAN;
function GetCmdResult(pCommand:pointer):integer;
Procedure EndICDMCommand(pCommand:Pointer);
Procedure RecvEdition(lpEdition:未知);
///////////////////////////////////////////////////////////////////end
仅供参考。。。
 
接受答案了.
 
后退
顶部