Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralImage Pin
Anonymous17-Oct-02 7:26
Anonymous17-Oct-02 7:26 
GeneralRe: Image Pin
jmkhael17-Oct-02 7:53
jmkhael17-Oct-02 7:53 
Generalproperty page data Pin
Kash17-Oct-02 6:56
Kash17-Oct-02 6:56 
GeneralRe: property page data Pin
Pavel Klocek17-Oct-02 7:59
Pavel Klocek17-Oct-02 7:59 
Generalsearching for a string in ram and altering Pin
Kuniva17-Oct-02 6:32
Kuniva17-Oct-02 6:32 
GeneralRe: searching for a string in ram and altering Pin
Maximilien17-Oct-02 7:25
Maximilien17-Oct-02 7:25 
GeneralRe: searching for a string in ram and altering Pin
nidis23-Oct-02 2:06
nidis23-Oct-02 2:06 
GeneralDamn CSocket Pin
Anonymous17-Oct-02 6:23
Anonymous17-Oct-02 6:23 
How do you catch a connection error in CSocket?? It doesn't seem possible..
CSocket sSocket;
sSocket.Create();
int iCon = sSocket.Connect("some.dns.com", 21);
if(iCon != 0)
    MessageBox("Error Connecting");

or

if(iCon == SOCKET_ERROR)
   MessageBox("Error Connecting");

Even if the address doesn't exist it will allways return a 0. (success)

I derived my own CSocket class and and over rode OnConnect(int nErrorCode) so that if it returns a error I post the message and if it doesn't error run a function.. it never returns anything..

The only reason I am using CSocket is because I need to use CSocketFile and CArchive..

Any ideas?? Or is this how it's supposed to work?
GeneralRe: Damn CSocket Pin
Stephane Rodriguez.17-Oct-02 6:35
Stephane Rodriguez.17-Oct-02 6:35 
GeneralRe: Damn CSocket Pin
Anonymous17-Oct-02 6:51
Anonymous17-Oct-02 6:51 
GeneralCListCtrl's rows colors Pin
RuiSantiago17-Oct-02 6:23
RuiSantiago17-Oct-02 6:23 
GeneralAPI and hardware Pin
viliam17-Oct-02 5:57
viliam17-Oct-02 5:57 
GeneralMessage Window Pin
Aaron Schaefer17-Oct-02 5:52
Aaron Schaefer17-Oct-02 5:52 
GeneralRe: Message Window Pin
Chris Richardson17-Oct-02 7:18
Chris Richardson17-Oct-02 7:18 
GeneralRe: Message Window Pin
Aaron Schaefer17-Oct-02 8:20
Aaron Schaefer17-Oct-02 8:20 
GeneralCleanly discover if a CD is in the CDROM Pin
Paul Farry17-Oct-02 4:39
professionalPaul Farry17-Oct-02 4:39 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Tomasz Sowinski17-Oct-02 4:45
Tomasz Sowinski17-Oct-02 4:45 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Paul Farry17-Oct-02 4:48
professionalPaul Farry17-Oct-02 4:48 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Michael Dunn17-Oct-02 5:36
sitebuilderMichael Dunn17-Oct-02 5:36 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Brian Delahunty17-Oct-02 6:16
Brian Delahunty17-Oct-02 6:16 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Michael Dunn19-Oct-02 9:19
sitebuilderMichael Dunn19-Oct-02 9:19 
GeneralRe: Cleanly discover if a CD is in the CDROM Pin
Brian Delahunty19-Oct-02 23:37
Brian Delahunty19-Oct-02 23:37 
GeneralUnicode Resource Editor Pin
olivier17-Oct-02 4:20
olivier17-Oct-02 4:20 
GeneralRe: Unicode Resource Editor Pin
l a u r e n17-Oct-02 4:32
l a u r e n17-Oct-02 4:32 
GeneralRe: Unicode Resource Editor Pin
Anonymous17-Oct-02 4:38
Anonymous17-Oct-02 4:38 

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.