Here is a sample of the code I am using:
status = ConnectToTCPServer (&handle, SERVER_PORT, SERVER_IP, TCPhandler, 0, 5000);
if (status < 0)
{
errorString = GetTCPSystemErrorString();
printf (errorString);
}
Now my problem:
Whenever the connection fails the status is set to something less than zero, however, what prints on the screen is "No error". Am I using the GetTCPSystemErrorString() function incorrectly? Please help! TIA.
I'm using LabWindows/CVI 5.5.1 on Windows NT 4.0