Hi Chris,
Thanks a lot, it works.
Regards
Kris
"Christian Fröschlin" <froeschlin@mvtec.com> wrote in message
news:f6attu$n0s$1@svr7.m-online.net...
> kris wrote:
>
>> public static extern long Connect(string pServer, long port, XMode mode);
>
> C# "long" ist 64-bit, so you should use int for port and return value.