bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in socket.cpp


From: David Sugar
Subject: Re: bug in socket.cpp
Date: Fri, 08 Apr 2005 19:28:29 -0400
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

From what I gather, depending on which version of the platform sdk you have installed with VC++ 6.0 (whether the one it originally comes with, or the latest one), you either MUST include windows.h before, or after winsock2.h or everything will break. and there is no easy way to find out which you have until you include some header! You can from what I gather install the current platform sdk for use with vc6. This also gives you support for building apps that use ipv6 with vc6 and some other "missing" api's.

Uwe Buchholz wrote:
Hi,

I compiled commoncpp2-1.3.8 and tried tcpstr1 with VC++ 6.0, SDK installed.

There was 2 problems:

1st in config.h I have to comment Line 83 :

//#define       HAVE_PLATFORMSDK

because I need to include <windows.h> before <winsock2.h>.

---------------------------

2nd in socket.cpp Line 2572 :

       if(!cp)
                cp = strrchr(namebuf, ':');

        if(!cp)
        {
                endStream();
                connectError();
                return;
        }
        
        *(cp++) = 0;       // << ----------------------- this line is missing

        if(isdigit(*cp))
                port = atoi(cp);

in all other cases where this sequence is used, it seemed to be OK.


Best regards

Uwe Buchholz





_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

Attachment: dyfet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]