如题

解决方案 »

  1.   

    BOOL Connect(
       LPCTSTR lpszHostAddress,
       UINT nHostPort 
    );
    BOOL Connect(
       const SOCKADDR* lpSockAddr,
       int nSockAddrLen 
    );
    //这俩函数可以用unicode码吗?怎么连接不上呀?
      

  2.   

    上面不是写的LPCTSTR么
    当然可以用unicode
    你得贴出你的代码才能知道为啥连不上
      

  3.   

    LPCTSTR这个要define UNICODE才是用Unicode
      

  4.   


    LPCTSTR这个要define?啥意思呀? 你的意思connect函数无法用unicode码?
      

  5.   

    wchar_t ip[] = L"10.100.1.120";
    sizeof(ip)