Click here to Skip to main content
15,891,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Ryan Binns10-Sep-03 3:10
Ryan Binns10-Sep-03 3:10 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Member 42425910-Sep-03 3:19
Member 42425910-Sep-03 3:19 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
ohadp10-Sep-03 4:23
ohadp10-Sep-03 4:23 
GeneralRe: Creating a Modal Dialog before calling DoModal() Pin
Alvaro Mendez10-Sep-03 8:52
Alvaro Mendez10-Sep-03 8:52 
QuestionHow to get places of memory leaks in ATL ? Pin
vgrigor10-Sep-03 0:35
vgrigor10-Sep-03 0:35 
Generalsocket recv(); please help Pin
thes3cr3t19-Sep-03 23:56
thes3cr3t19-Sep-03 23:56 
GeneralRe: socket recv(); please help Pin
CodeBrain10-Sep-03 3:04
CodeBrain10-Sep-03 3:04 
GeneralRe: socket recv(); please help Pin
thes3cr3t110-Sep-03 6:32
thes3cr3t110-Sep-03 6:32 
int nBytes;
CString buffer;
nBytes = recv(Socket,buffer, sizeof(buffer), 0);

// check for errors
if (nBytes == SOCKET_ERROR) {
m_strStatus = "Recv Failed";
UpdateData(false);
}
else
{
// print the received message
m_strStatus = "Message Received";
m_strMessage = buffer;
UpdateData(false);
}


there is my code for the recv function,at the moment it wont compile,its complaining that it cant convert from class CString to char*.

im tryning to send text to the server,the text should be displayed in my editbox varible named m_strMessage.sometimes i do get some text in there but it isnt from the client i only assume its some sort of error code.

i have tried all sorts tryna get this to work for you it might pretty simple however im just a newby.

thank you for your time m8!Confused | :confused:
GeneralRe: socket recv(); please help Pin
CodeBrain10-Sep-03 8:20
CodeBrain10-Sep-03 8:20 
GeneralRe: socket recv(); please help Pin
thes3cr3t111-Sep-03 4:31
thes3cr3t111-Sep-03 4:31 
GeneralObject persistance in a relationnal database Pin
Jerome Conus9-Sep-03 23:35
Jerome Conus9-Sep-03 23:35 
GeneralRe: Object persistance in a relationnal database Pin
basementman10-Sep-03 12:29
basementman10-Sep-03 12:29 
GeneralRe: Object persistance in a relationnal database Pin
Jerome Conus10-Sep-03 19:03
Jerome Conus10-Sep-03 19:03 
GeneralRe: Object persistance in a relationnal database Pin
basementman11-Sep-03 4:23
basementman11-Sep-03 4:23 
Generalusing stringtokenizer in c++ Pin
Member 1609889-Sep-03 22:43
Member 1609889-Sep-03 22:43 
GeneralRe: using stringtokenizer in c++ Pin
Ravi Bhavnani9-Sep-03 22:56
professionalRavi Bhavnani9-Sep-03 22:56 
GeneralRe: using stringtokenizer in c++ Pin
Bernhard9-Sep-03 23:01
Bernhard9-Sep-03 23:01 
GeneralRe: using stringtokenizer in c++ Pin
Member 1609889-Sep-03 23:03
Member 1609889-Sep-03 23:03 
GeneralRe: using stringtokenizer in c++ Pin
Bernhard9-Sep-03 23:04
Bernhard9-Sep-03 23:04 
GeneralRe: using stringtokenizer in c++ Pin
Jagadeesh VN9-Sep-03 23:09
Jagadeesh VN9-Sep-03 23:09 
GeneralRe: using stringtokenizer in c++ Pin
Jagadeesh VN9-Sep-03 23:10
Jagadeesh VN9-Sep-03 23:10 
GeneralArrow keys Pin
Marissa1829-Sep-03 22:28
Marissa1829-Sep-03 22:28 
GeneralRe: Arrow keys Pin
KaЯl10-Sep-03 0:26
KaЯl10-Sep-03 0:26 
GeneralRe: Arrow keys Pin
Marissa18210-Sep-03 10:19
Marissa18210-Sep-03 10:19 
GeneralRe: Arrow keys Pin
KaЯl10-Sep-03 21:10
KaЯl10-Sep-03 21:10 

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.