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

C / C++ / MFC

 
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 
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 
.clear() doesnt work with VC++ 6



<br />
string password="logmein";<br />
stringstream loginsys;<br />
string loggedin;<br />
string loggedin2="Loggedin";<br />
<br />
bool loginsystem(const string& login){ <br />
	if(buff.find(password) != string::npos){<br />
		loginsys << "Loggedin";<br />
		loggedin=loginsys.str();<br />
		cout << "Logged in " << endl;<br />
		return true;<br />
	}<br />
	else{<br />
		cout << "Cannot log you in " << endl;<br />
		return false;<br />
	}<br />
}<br />
<br />
void logout(void){<br />
	loggedin.erase();<br />
	loggedin2.erase();<br />
	cout << "Your now logged out. " << endl;<br />
}<br />
<br />
if(buff.find(".hi") != string::npos){<br />
		if(buff.find(host) != string::npos){<br />
			if(loggedin == loggedin2){<br />
				cout << "Hello " << endl;<br />
			}<br />
		}<br />
}<br />


Even once loggedin and loggedin2 string buffers are emptied, i cant seem to find out how to fill it again with "Loggedin" so that the bottom function can check to see if the characters are in the buffer.
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 
QuestionLoading of unnecessary libraries at run-time Pin
Zerox MXI26-Jul-07 4:58
Zerox MXI26-Jul-07 4:58 
AnswerRe: Loading of unnecessary libraries at run-time Pin
Jonathan [Darka]26-Jul-07 5:05
professionalJonathan [Darka]26-Jul-07 5:05 

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.