Thanks for the help with the Socket() call. My program now gets past that point and fails on the SetSocketOptions() call. This time I found the bug myself. The fpSetSockOpt is passed a variable called Level which it never uses in the system call. I attached a simple diff to fix the problem.
In my last example code it was mentioned I shouldn't use integer for a file handle, but instead I should use cint. I see there are other cxxx types defined. I'll be making use of them.
Thank you again.
