Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ask for help: about singleton class Pin
chenxiujie19-Nov-05 14:44
chenxiujie19-Nov-05 14:44 
GeneralRe: Ask for help: about singleton class Pin
Bob Stanneveld20-Nov-05 19:11
Bob Stanneveld20-Nov-05 19:11 
Questionrun a console app from MFC or Windows Forms Pin
smargada18-Nov-05 14:46
smargada18-Nov-05 14:46 
AnswerRe: run a console app from MFC or Windows Forms Pin
Gary R. Wheeler20-Nov-05 6:58
Gary R. Wheeler20-Nov-05 6:58 
QuestionMenu Items won't come up gray Pin
BuckBrown18-Nov-05 7:42
BuckBrown18-Nov-05 7:42 
AnswerRe: Menu Items won't come up gray Pin
Maximilien18-Nov-05 7:54
Maximilien18-Nov-05 7:54 
GeneralRe: Menu Items won't come up gray Pin
BuckBrown18-Nov-05 10:24
BuckBrown18-Nov-05 10:24 
QuestionReceiving Msgs from Chat Client Pin
legendaryhwk18-Nov-05 5:40
legendaryhwk18-Nov-05 5:40 
hey this is my first time posting so forgive me for any errors.
well, heres the deal. im building a chat program. the user enters text then hit sends. the max he can enter is 1000. when he hits send, the client uses the send() func to send the msg to the server. it looks sorta like this:
<br />
send(clientSocket, buffer, strlen(buffer), 0);<br />

NOTE: at the end of the msg i added to line breaks(\n\r\n\r);

the server then recieves the message and puts it in a buffer char array with [1000]

<br />
recv(clientSocket, buffer, 1000, 0);<br />


then, for debugging purposes, the server prints out what it received.
also the strlen(buffer) is printed out.
the output for the message "hey" is:
1004 characters (already wrong)
then it prints out "hey", two line breaks, and 1000 weird chars.
my question: how do i isolate just the hey and the four chars that make up the two line breaks???
i just need an idea then i can form somethin..
thanks all!!

The Legend...
Questionhow can we dial server database from client application Pin
sheerprogrammer18-Nov-05 5:19
sheerprogrammer18-Nov-05 5:19 
QuestionDouble winmains,..kind of... Pin
Karl Josefsson18-Nov-05 5:07
Karl Josefsson18-Nov-05 5:07 
QuestionHow can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 5:02
Loc Milkyway18-Nov-05 5:02 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
legendaryhwk18-Nov-05 6:18
legendaryhwk18-Nov-05 6:18 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 7:43
Loc Milkyway18-Nov-05 7:43 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
toxcct18-Nov-05 7:05
toxcct18-Nov-05 7:05 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
Loc Milkyway18-Nov-05 9:01
Loc Milkyway18-Nov-05 9:01 
GeneralRe: How can I set property in edit box to accept only Decimal number Pin
toxcct18-Nov-05 23:06
toxcct18-Nov-05 23:06 
AnswerRe: How can I set property in edit box to accept only Decimal number Pin
Rick York19-Nov-05 7:49
mveRick York19-Nov-05 7:49 
Question_AFX_MAIL_STATE with dynamicly linked MFC dll Pin
lynchspawn18-Nov-05 3:36
lynchspawn18-Nov-05 3:36 
QuestionMigrating to managed C++ Pin
Jim Crafton18-Nov-05 3:32
Jim Crafton18-Nov-05 3:32 
AnswerRe: Migrating to managed C++ Pin
Nish Nishant18-Nov-05 9:19
sitebuilderNish Nishant18-Nov-05 9:19 
GeneralRe: Migrating to managed C++ Pin
Jim Crafton18-Nov-05 9:26
Jim Crafton18-Nov-05 9:26 
AnswerRe: Migrating to managed C++ Pin
cmk18-Nov-05 13:00
cmk18-Nov-05 13:00 
GeneralRe: Migrating to managed C++ Pin
Jim Crafton19-Nov-05 5:22
Jim Crafton19-Nov-05 5:22 
GeneralRe: Migrating to managed C++ Pin
Gary R. Wheeler19-Nov-05 5:53
Gary R. Wheeler19-Nov-05 5:53 
QuestionReading ext2 file system of Linex Pin
Aqueel18-Nov-05 3:04
Aqueel18-Nov-05 3:04 

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.