Click here to Skip to main content
15,904,024 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CFont query Pin
Shog914-Aug-02 3:43
sitebuilderShog914-Aug-02 3:43 
GeneralRe: CFont query Pin
Roger Allen14-Aug-02 3:43
Roger Allen14-Aug-02 3:43 
GeneralThanks guys Pin
Nish Nishant14-Aug-02 3:51
sitebuilderNish Nishant14-Aug-02 3:51 
GeneralImage 2 Pin
Mazdak14-Aug-02 2:35
Mazdak14-Aug-02 2:35 
GeneralRe: Image 2 Pin
567890123414-Aug-02 3:30
567890123414-Aug-02 3:30 
GeneralRe: Image 2 Pin
Mazdak14-Aug-02 5:43
Mazdak14-Aug-02 5:43 
Generalhorizontal scrollbar in edit view Pin
Steve L.14-Aug-02 2:17
Steve L.14-Aug-02 2:17 
GeneralCSocket Pin
Zizilamoroso14-Aug-02 1:43
Zizilamoroso14-Aug-02 1:43 
code snippet:
AfxSocketInit();
CSocket socket;
socket.Create();
if(!socket.Connect(url,80))
  {
     int err=socket.GetLastError();
     cout << err << endl;
  }

Url is someting like: "http://www.somewhere.com/somepage.html".

The CSocket::Connect() always failes. It's strange but the errorcode returned by getlasterror is zero (0), so I can't retrieve any information about the error.

Init and create succeed though.

Somebody got a clue? What am I doing wrong here?



[VISUAL STUDIO 6.0] [MFC] [WIN98/2]

Dead | X| Bluute tette! Dead | X|
GeneralRe: CSocket Pin
markkuk14-Aug-02 1:51
markkuk14-Aug-02 1:51 
GeneralRe: CSocket Pin
Zizilamoroso14-Aug-02 2:48
Zizilamoroso14-Aug-02 2:48 
GeneralBuilding old style dll using .NET C++ Pin
Dean Adams14-Aug-02 1:43
Dean Adams14-Aug-02 1:43 
GeneralRe: Building old style dll using .NET C++ Pin
Roman Fadeyev14-Aug-02 2:31
Roman Fadeyev14-Aug-02 2:31 
GeneralRe: Building old style dll using .NET C++ Pin
Dean Adams14-Aug-02 9:02
Dean Adams14-Aug-02 9:02 
GeneralRe: Building old style dll using .NET C++ Pin
Roman Fadeyev14-Aug-02 19:02
Roman Fadeyev14-Aug-02 19:02 
GeneralRe: Building old style dll using .NET C++ Pin
Dean Adams14-Aug-02 23:25
Dean Adams14-Aug-02 23:25 
GeneralRe: Building old style dll using .NET C++ Pin
Dean Adams14-Aug-02 23:50
Dean Adams14-Aug-02 23:50 
GeneralRe: Building old style dll using .NET C++ Pin
Roman Fadeyev15-Aug-02 3:49
Roman Fadeyev15-Aug-02 3:49 
GeneralCListCtrl::EnsureVisible Pin
Poul Haahr Klemmensen14-Aug-02 1:33
Poul Haahr Klemmensen14-Aug-02 1:33 
GeneralafxDump and CMap Pin
-Dy14-Aug-02 1:07
-Dy14-Aug-02 1:07 
QuestionActivating IE proxy settings...? Pin
Tommy Svensson14-Aug-02 0:50
Tommy Svensson14-Aug-02 0:50 
AnswerRe: Activating IE proxy settings...? Pin
Brian Delahunty14-Aug-02 1:19
Brian Delahunty14-Aug-02 1:19 
GeneralRe: Activating IE proxy settings...? Pin
Tommy Svensson14-Aug-02 1:31
Tommy Svensson14-Aug-02 1:31 
GeneralRe: Activating IE proxy settings...? Pin
Todd Smith14-Aug-02 5:16
Todd Smith14-Aug-02 5:16 
AnswerRe: Activating IE proxy settings...? Pin
Tommy Svensson14-Aug-02 21:58
Tommy Svensson14-Aug-02 21:58 
GeneralInitialising static const strings in VC7 Pin
Rob Caldecott14-Aug-02 0:27
Rob Caldecott14-Aug-02 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.