Hi all,

This morning I found I couldn't connect to any Informix database from a
Delphi application on my Win2k machine. After much messing around I
discovered it is something to do with Winsock and the resolving of
service names to port numbers (using
C:\Winnt\system32\drivers\etc\services). I built a simple Delphi
application to test this which should work, and does in fact work on
another machine. The Winsock call used is as follows:

    LService := getservbyname('echo', nil);

LService is always NULL on my machine and WSAGetLastErrror returns
11004, which is "The requested name is valid and was found in the
database, but it does not have the correct associated data being
resolved for". I get this error no matter what service name I ask for,
even one which I know doesn't exist. The
C:\Winnt\system32\drivers\etc\services file is intact and correctly
formatted as far as I can tell.

Yesterday my system worked fine. Today it is screwed up. Any ideas?

Cheers,
Paul

---------------------------------------------------------
Paul Eggleton                  Ph:    +64-9-4154790
Software Developer             Fax:   +64-9-4154791
CJN Technologies Ltd.          DDI:   +64-9-4154795
http://www.cjntech.co.nz       Email: [EMAIL PROTECTED]
--------------------------------------------------------- 
---------------------------------------------------------------------------
  New Zealand Delphi Users group - Offtopic List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe offtopic"
Web Archive at: http://www.mail-archive.com/offtopic%40delphi.org.nz/

Reply via email to