Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I need control over other windows. Pin
Joel Holdsworth19-May-05 11:10
Joel Holdsworth19-May-05 11:10 
GeneralRe: I need control over other windows. Pin
bugDanny20-May-05 5:19
bugDanny20-May-05 5:19 
GeneralRe: I need control over other windows. Pin
Joel Holdsworth20-May-05 6:42
Joel Holdsworth20-May-05 6:42 
GeneralOverloaded operators and enums Pin
Andrew Manison19-May-05 9:49
Andrew Manison19-May-05 9:49 
Generalanother small pointers problem Pin
Mridang Agarwalla19-May-05 8:21
Mridang Agarwalla19-May-05 8:21 
GeneralRe: another small pointers problem Pin
Monty219-May-05 8:32
Monty219-May-05 8:32 
GeneralRe: another small pointers problem Pin
David Crow19-May-05 8:35
David Crow19-May-05 8:35 
GeneralSocket Question Pin
talkster519-May-05 8:19
talkster519-May-05 8:19 
I have used part of this code from a tutorial I found on this website and I am now trying to adapt it into being useful for my program to use the data it recieves. I am probably doing totally the wrong thing as some of it I don't really understand yet as I am fairly new to c++. I know the data that is being recieved is "START" as it echos the data into the console so that I can see it. However when I come to the if statements it is not proccessing the data and echoing back the statements I want it to. The code is below for the part of the program which proccesses the data. I know the rest of the program works it is just using the data in the if statments. If you need any more information please just ask and I will try to provide it to you as best as I cant. Thanks in advance to anyone that helps.


UINT ClientThread(LPVOID pParam)
{
char buff[512];
CString cmd;
CString params;
int n;
BOOL auth=false;
SOCKET client=(SOCKET)pParam;
strcpy(buff,"#Server Ready.\r\n");
send(client,buff,strlen(buff),0);
while(true)
{
n=recv(client,buff,512,0);
if(n==SOCKET_ERROR )
break;
buff[n]=0;
std::cout << "Data: " << buff;
if(buff=="QUIT")
{
std::cout << "QUIT Command Recieved\r\n";
break;
}
if(buff=="START")
{
cout << "Start Command Recieved\r\n";
}

closesocket(client);
return 0;
}
}
GeneralRe: Socket Question Pin
Ryan Binns19-May-05 18:11
Ryan Binns19-May-05 18:11 
GeneralRe: Socket Question Pin
talkster519-May-05 19:58
talkster519-May-05 19:58 
GeneralRe: Socket Question Pin
talkster520-May-05 3:39
talkster520-May-05 3:39 
GeneralRe: Socket Question Pin
talkster520-May-05 4:38
talkster520-May-05 4:38 
GeneralIncomplete Stack trace from Minidump using WinDbg Pin
JayVSub19-May-05 8:00
JayVSub19-May-05 8:00 
GeneralRe: Incomplete Stack trace from Minidump using WinDbg Pin
doublebug21-May-05 1:57
doublebug21-May-05 1:57 
GeneralHelp: App crashes using Chris GridCtrl in DLL and Release Mode (has anyone same problem or a workaround) Pin
Ralph19-May-05 7:22
Ralph19-May-05 7:22 
GeneralRe: Help: App crashes using Chris GridCtrl in DLL and Release Mode (has anyone same problem or a workaround) Pin
Ryan Binns19-May-05 18:30
Ryan Binns19-May-05 18:30 
GeneralRe: Help: App crashes using Chris GridCtrl in DLL and Release Mode (has anyone same problem or a workaround) Pin
Ralph20-May-05 3:49
Ralph20-May-05 3:49 
Questionwhat are memory leaks? Pin
Mridang Agarwalla19-May-05 6:38
Mridang Agarwalla19-May-05 6:38 
AnswerRe: what are memory leaks? Pin
toxcct19-May-05 6:48
toxcct19-May-05 6:48 
GeneralThose *#@!$+ Memory Leaks Pin
Uwe Keim19-May-05 5:58
sitebuilderUwe Keim19-May-05 5:58 
GeneralRe: Those *#@!$+ Memory Leaks Pin
jmkhael19-May-05 6:19
jmkhael19-May-05 6:19 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim19-May-05 10:23
sitebuilderUwe Keim19-May-05 10:23 
GeneralRe: Those *#@!$+ Memory Leaks Pin
jmkhael19-May-05 21:53
jmkhael19-May-05 21:53 
GeneralRe: Those *#@!$+ Memory Leaks Pin
Uwe Keim20-May-05 3:28
sitebuilderUwe Keim20-May-05 3:28 
GeneralRe: Those *#@!$+ Memory Leaks Pin
David Crow19-May-05 8:31
David Crow19-May-05 8:31 

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.