DLL檔案名稱是:PBCLMLP3.DLL
一開是這樣寫
Private Declare Function WINAPI_LoadLibrary _
Lib "kernel32" Alias "LoadLibraryA" _
(ByVal lpLibFileName As String) As Long
Public Sub Main()
Dim sResFileName As String
Dim sINIFile As String
mhMLPLib = WINAPI_LoadLibrary("pbclmlp3")
End Sub
以下是其中一個method,但我不知要如何處理。請問有誰可以交我
int EnablePort(UINT port, PMASYNCNOTIF pnotif, BAUDRATE baud, PARITY par, DATABITS wdlen, STOPBITS sbits); called to acquire and enable a specific port (COM1, COM2, ...), to specify the address (0 if none desired) of the callback function to be called, and to specify the initial channel parameters. The port defaults to 9600 baud, no parity, 8 bits per character and 2 stopbits. Fails if the port is already enabled. All other API calls on the port fail if the port is NOT already enabled.
一開是這樣寫
Private Declare Function WINAPI_LoadLibrary _
Lib "kernel32" Alias "LoadLibraryA" _
(ByVal lpLibFileName As String) As Long
Public Sub Main()
Dim sResFileName As String
Dim sINIFile As String
mhMLPLib = WINAPI_LoadLibrary("pbclmlp3")
End Sub
以下是其中一個method,但我不知要如何處理。請問有誰可以交我
int EnablePort(UINT port, PMASYNCNOTIF pnotif, BAUDRATE baud, PARITY par, DATABITS wdlen, STOPBITS sbits); called to acquire and enable a specific port (COM1, COM2, ...), to specify the address (0 if none desired) of the callback function to be called, and to specify the initial channel parameters. The port defaults to 9600 baud, no parity, 8 bits per character and 2 stopbits. Fails if the port is already enabled. All other API calls on the port fail if the port is NOT already enabled.
文章標籤
全站熱搜
