Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Robocode in C++ Pin
«_Superman_»18-Nov-10 5:30
professional«_Superman_»18-Nov-10 5:30 
QuestionDisplaying as much text as possible PinPopular
Code-o-mat17-Nov-10 5:15
Code-o-mat17-Nov-10 5:15 
AnswerRe: Displaying as much text as possible Pin
Peter_in_278017-Nov-10 19:07
professionalPeter_in_278017-Nov-10 19:07 
GeneralRe: Displaying as much text as possible Pin
Code-o-mat17-Nov-10 22:05
Code-o-mat17-Nov-10 22:05 
AnswerRe: Displaying as much text as possible Pin
Richard MacCutchan18-Nov-10 1:28
mveRichard MacCutchan18-Nov-10 1:28 
AnswerRe: Displaying as much text as possible Pin
Luc Pattyn18-Nov-10 1:56
sitebuilderLuc Pattyn18-Nov-10 1:56 
GeneralRe: Displaying as much text as possible Pin
Code-o-mat18-Nov-10 2:00
Code-o-mat18-Nov-10 2:00 
Questionboost ::asio:async_read_until usage/question from a newbie boost user Pin
Alan Kurlansky17-Nov-10 3:17
Alan Kurlansky17-Nov-10 3:17 
Hi,
Just started using the boost libraries to do asynch i/o and not sure if this is the best forum for this but will post anyway.
First question I am specifying a delimiter character in the call but when I display what I get back it looks like it is also implicitly returning when a LF \'n' char is reached even though this isn't my delimiter. Could this method have default delimiters that need to be managed? I haven't seen this in the documentation so far.
Secondly, the second argument in the call is a "boost::asio::streambuf b". What's the best way to extract the message from the buffer and put it into an std::string?
I've played around with:
size_t n = b.size();
b.commit(n);
std::istream is(&b);
std::string s;
is >> s;
But now sure what's going on under the covers here.
Any help would be appreciated.
Thanks
ak
Questionfont size Pin
john563217-Nov-10 2:33
john563217-Nov-10 2:33 
AnswerRe: font size Pin
Richard MacCutchan17-Nov-10 2:46
mveRichard MacCutchan17-Nov-10 2:46 
GeneralRe: font size Pin
john563217-Nov-10 2:52
john563217-Nov-10 2:52 
QuestionRe: font size Pin
David Crow17-Nov-10 3:11
David Crow17-Nov-10 3:11 
AnswerRe: font size [modified] Pin
Richard MacCutchan17-Nov-10 9:06
mveRichard MacCutchan17-Nov-10 9:06 
QuestionPlease tell me whats wrong with function? Pin
Le@rner17-Nov-10 0:42
Le@rner17-Nov-10 0:42 
AnswerRe: Please tell me whats wrong with function? Pin
Stephen Hewitt17-Nov-10 0:55
Stephen Hewitt17-Nov-10 0:55 
AnswerRe: Please tell me whats wrong with function? PinPopular
Cedric Moonen17-Nov-10 0:57
Cedric Moonen17-Nov-10 0:57 
GeneralRe: Please tell me whats wrong with function? Pin
Le@rner17-Nov-10 1:00
Le@rner17-Nov-10 1:00 
GeneralRe: Please tell me whats wrong with function? Pin
Cedric Moonen17-Nov-10 1:06
Cedric Moonen17-Nov-10 1:06 
QuestionRe: Please tell me whats wrong with function? Pin
CPallini17-Nov-10 1:21
mveCPallini17-Nov-10 1:21 
JokeRe: Please tell me whats wrong with function? Pin
Code-o-mat17-Nov-10 2:08
Code-o-mat17-Nov-10 2:08 
GeneralRe: Please tell me whats wrong with function? Pin
CPallini17-Nov-10 2:16
mveCPallini17-Nov-10 2:16 
JokeRe: Please tell me whats wrong with function? Pin
Code-o-mat17-Nov-10 2:21
Code-o-mat17-Nov-10 2:21 
AnswerRe: Please tell me whats wrong with function? [modified] Pin
Alain Rist17-Nov-10 3:50
Alain Rist17-Nov-10 3:50 
GeneralRe: Please tell me whats wrong with function? Pin
CPallini17-Nov-10 5:26
mveCPallini17-Nov-10 5:26 
AnswerRe: Please tell me whats wrong with function? Pin
super17-Nov-10 2:23
professionalsuper17-Nov-10 2:23 

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.