调用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);
请问如何把example中的函数转换到labview中呢
主要是这个hwnd,不知道怎么弄
希望老大给指点一下,最好能给个labview8.2或以下版本的例子
谢谢了
下面是别人的发言:
All native LabVIEW controls are entirely handled internal to LabVIEW and Windows is not aware at all that there is something like a control inside a LabVIEW panel. LabVIEW uses Windows HWNDs only for its windows, both front panels and block diagrams. The exception to this are Active X controls that of course need to use a HWND somehow in order to work as Windows requires them to do.