调用dll函数时,说明如下,
SSIDLL_API int __stdcall SSIConnect(HWND hwnd, long Baud, int Port);
where:
• hwnd is the handle of the window whose procedure will receive Windows
messages from the library.
• Baud is the baud rate to use
• Port is the COM port number to open
Return Values
• SSICOMM_NOERROR if the COM port was opened successfully.
• An error code if an error occurred (see Table 1-1 on page 1-32)
Example
int status;
// using baud rate of 9600, com port number 1
status = SSIConnect(m_hWnd, 9600, 1);