LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the ShowDataSocketError function?

I have LabWindows/CVI 6.0. In some of the sample programs for DataSockets, there are calls to ShowDataSocketError. I assume some of these sample projects are from earlier versions of CVI. What is its equivalent in 6.0? GetLibraryErrorString?
0 Kudos
Message 1 of 3
(3,044 Views)
ShowDataSocketError is a utility function that is written in the C file of the examples. Open the example and right-click on the function and click Go To Definition... and you will see that it is just written write there in the C file. This is the source for it.

static void ShowDataSocketError(HRESULT errorCode)
{
char errBuf[300];
DS_GetLibraryErrorString (errorCode, errBuf, 300);
MessagePopup ("Error", errBuf);
return;
}

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,044 Views)
Thank you, Chris.
0 Kudos
Message 3 of 3
(3,044 Views)