Windows Sockets 1.1应用实例(137)

2010-12-30 20:58:11 · 作者: · 浏览: 62971
nbsp;        /*  return string length of zero */

          

       /* error string from the table in the Resource file into buffer */

        err_len = LoadString(hInst,errorcode,buf,len);

      

       return (err_len);  /* return length of error string retrieved */

      

}  /* end WSAsperror() */

 

/* eof */

 

3.4.3.9 resolve.c清单

/*

 * 文件名: RESOLVE.C

 */

 

#include "wshout.h"

 

/* MSC Include files: */

#include <stdio.h>

#include <io.h>

#include <string.h>

#include <stdlib.h>

#include <time.h>

 

 

SOCKET

ResolveAndConnectHost(LPSTR lpHostName,HWND hOurDlg,int iproto, int iSockPort)

{

    struct   &