Click here to Skip to main content
15,922,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I process "ALT + ENTER" in Win32 C++ programming? Pin
Mark Salsbery26-Jul-07 15:58
Mark Salsbery26-Jul-07 15:58 
QuestionQuestion about Recording from Microphone Pin
godspeed12326-Jul-07 11:37
godspeed12326-Jul-07 11:37 
AnswerRe: Question about Recording from Microphone Pin
Mark Salsbery26-Jul-07 13:06
Mark Salsbery26-Jul-07 13:06 
QuestionProgram crash while accessing OnPaint() from a thread!! Pin
Kiran Satish26-Jul-07 10:31
Kiran Satish26-Jul-07 10:31 
QuestionRe: Program crash while accessing OnPaint() from a thread!! Pin
David Crow26-Jul-07 10:47
David Crow26-Jul-07 10:47 
AnswerRe: Program crash while accessing OnPaint() from a thread!! [modified] Pin
Kiran Satish26-Jul-07 10:59
Kiran Satish26-Jul-07 10:59 
QuestionRe: Program crash while accessing OnPaint() from a thread!! Pin
David Crow30-Jul-07 2:56
David Crow30-Jul-07 2:56 
QuestionBuffer help Pin
dellthinker26-Jul-07 6:57
dellthinker26-Jul-07 6:57 
Hi all. I made a simple function that acts off of whether there's a certain string placed in a buffer.

<br />
string match1;<br />
string match2="virtualspace";<br />
<br />
	if(client.find("matchup") != string::npos){<br />
		if(client.find(word) != string::npos){<br />
			if(match1 == match2){<br />
		          cout << "Found a match";<br />
			}<br />
                          else{<br />
                                  cout << "No match";<br />
		}<br />


So once the first function is called and the buffer is filled it works fine. Then .clear() to empty the buffer works fine too. But when i try to fill the same buffer with the same characters from before it doesnt work. So i figured, maybe theres something left over in the buffer. So i tried to clear the buffer several times with .erase() and .clear() and i even did something like this.

string var="";
buffer << var;

Again it cleared the buffer (i think) but didnt allow me to put anything back in it.

My question is, once you wipe a buffer is there no way to re-fill it with the same data from before? And if you can, how? I've searched far and wide for an explanation. I've never dealt with something like this so i have no clue as to what i should be doing. Any suggestions? Thanx in advance!
AnswerRe: Buffer help Pin
led mike26-Jul-07 7:15
led mike26-Jul-07 7:15 
GeneralRe: Buffer help Pin
dellthinker26-Jul-07 9:41
dellthinker26-Jul-07 9:41 
QuestionRe: Buffer help Pin
David Crow26-Jul-07 10:44
David Crow26-Jul-07 10:44 
AnswerRe: Buffer help Pin
dellthinker26-Jul-07 11:27
dellthinker26-Jul-07 11:27 
GeneralRe: Buffer help Pin
David Crow30-Jul-07 2:55
David Crow30-Jul-07 2:55 
Questionexactly same code, warning C4311: 'type cast' in a MFC dialog, no warning in console application!? Pin
alberthyc26-Jul-07 6:51
alberthyc26-Jul-07 6:51 
AnswerRe: exactly same code, warning C4311: 'type cast' in a MFC dialog, no warning in console application!? Pin
Mark Salsbery26-Jul-07 7:11
Mark Salsbery26-Jul-07 7:11 
AnswerRe: exactly same code, warning C4311: 'type cast' in a MFC dialog, no warning in console application!? Pin
Michael Dunn26-Jul-07 7:58
sitebuilderMichael Dunn26-Jul-07 7:58 
AnswerRe: exactly same code, warning C4311: 'type cast' in a MFC dialog, no warning in console application!? Pin
alberthyc26-Jul-07 13:30
alberthyc26-Jul-07 13:30 
GeneralRe: exactly same code, warning C4311: 'type cast' in a MFC dialog, no warning in console application!? Pin
Mark Salsbery26-Jul-07 13:40
Mark Salsbery26-Jul-07 13:40 
QuestionCustom cursor blinks while OpenGL redraws Pin
xuxiuxun26-Jul-07 5:29
xuxiuxun26-Jul-07 5:29 
AnswerRe: Custom cursor blinks while OpenGL redraws Pin
Roger Broomfield26-Jul-07 5:57
Roger Broomfield26-Jul-07 5:57 
GeneralRe: Custom cursor blinks while OpenGL redraws Pin
xuxiuxun26-Jul-07 15:59
xuxiuxun26-Jul-07 15:59 
AnswerRe: Custom cursor blinks while OpenGL redraws Pin
cmk26-Jul-07 12:09
cmk26-Jul-07 12:09 
GeneralRe: Custom cursor blinks while OpenGL redraws Pin
xuxiuxun26-Jul-07 16:08
xuxiuxun26-Jul-07 16:08 
QuestionCreating xml file using MSXML4 Pin
Maynka26-Jul-07 5:06
Maynka26-Jul-07 5:06 
GeneralRe: Creating xml file using MSXML4 Pin
Roger Broomfield26-Jul-07 5:39
Roger Broomfield26-Jul-07 5:39 

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.