Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Word in C++ Pin
Bill Wilson17-Sep-02 10:27
Bill Wilson17-Sep-02 10:27 
GeneralRe: Word in C++ Pin
insanely42017-Sep-02 11:00
insanely42017-Sep-02 11:00 
GeneralWinSock: How do I get the Host Name Pin
Robert Scheckle17-Sep-02 3:44
Robert Scheckle17-Sep-02 3:44 
GeneralRe: WinSock: How do I get the Host Name Pin
Bart Robeyns17-Sep-02 4:43
Bart Robeyns17-Sep-02 4:43 
GeneralWorkspace Model Pin
Ryan B.17-Sep-02 3:41
Ryan B.17-Sep-02 3:41 
GeneralRe: Workspace Model Pin
Ryan B.17-Sep-02 8:54
Ryan B.17-Sep-02 8:54 
GeneralRe: Workspace Model Pin
Bill Wilson17-Sep-02 11:21
Bill Wilson17-Sep-02 11:21 
Questionhow to get input from user Pin
ns17-Sep-02 3:04
ns17-Sep-02 3:04 
I have a loop that first gets a value of "PAGE" for the Cedit WindowText. Why doesnt it stop at

GetWindowText() the second time it comes around? I stepped through and after finding "PAGE" the first time, it sails through the lines in red on a second pass, and of course I never got a chance to change the CEdit entry, so the variable is still "PAGE", and an infinite for loop starts....

	bool bExistingEntry;

	do
	{
	// get the new entry here

<code>		m_editAddNewKeyword.SetFocus();

		m_editAddNewKeyword.GetWindowText(m_newKW);</code>

		bExistingEntry = false;

		for (int i = 0 ; i < m_numFields && !bExistingEntry ; i++)
		if (bExistingEntry = (m_AddKWFldsHolder[i] == m_newKW))
		{
			AfxMessageBox("Keyword already exists in database. Add new Keyword or Cancel");


		}
	}
	while (bExistingEntry);


Probably something goofy, but I cant see it....
Thanks,
ns
AnswerRe: how to get input from user Pin
Ravi Bhavnani17-Sep-02 3:31
professionalRavi Bhavnani17-Sep-02 3:31 
GeneralRe: how to get input from user Pin
ns17-Sep-02 3:38
ns17-Sep-02 3:38 
GeneralRe: how to get input from user Pin
Ravi Bhavnani17-Sep-02 3:36
professionalRavi Bhavnani17-Sep-02 3:36 
GeneralRe: how to get input from user Pin
ns17-Sep-02 3:59
ns17-Sep-02 3:59 
QuestionBIG OR LITTLE QUESTION? Pin
ZBUILDER17-Sep-02 2:46
ZBUILDER17-Sep-02 2:46 
AnswerRe: BIG OR LITTLE QUESTION? Pin
jhwurmbach17-Sep-02 2:54
jhwurmbach17-Sep-02 2:54 
AnswerRe: BIG OR LITTLE QUESTION? Pin
Bart Robeyns17-Sep-02 2:57
Bart Robeyns17-Sep-02 2:57 
GeneralRe: BIG OR LITTLE QUESTION? Pin
ZBUILDER17-Sep-02 3:08
ZBUILDER17-Sep-02 3:08 
Questioncan Anybody tell me, how to resolve a trouble debug assert fail? Pin
Anonymous17-Sep-02 2:36
Anonymous17-Sep-02 2:36 
AnswerRe: can Anybody tell me, how to resolve a trouble debug assert fail? Pin
Bart Robeyns17-Sep-02 2:49
Bart Robeyns17-Sep-02 2:49 
GeneralIssues with char ** pointers Pin
Jon Hulatt17-Sep-02 2:18
Jon Hulatt17-Sep-02 2:18 
GeneralRe: Issues with char ** pointers Pin
Roger Allen17-Sep-02 2:27
Roger Allen17-Sep-02 2:27 
GeneralRe: Issues with char ** pointers Pin
Jon Hulatt17-Sep-02 2:31
Jon Hulatt17-Sep-02 2:31 
GeneralProject managment under Visual C++ Pin
auroch17-Sep-02 2:04
auroch17-Sep-02 2:04 
GeneralMs Word Automation, Disable Keyboard Input... Pin
Braulio Dez17-Sep-02 1:20
Braulio Dez17-Sep-02 1:20 
GeneralRe: Ms Word Automation, Disable Keyboard Input... Pin
Stephane Rodriguez.17-Sep-02 1:43
Stephane Rodriguez.17-Sep-02 1:43 
GeneralRe: Ms Word Automation, Disable Keyboard Input... Pin
Braulio Dez17-Sep-02 4:32
Braulio Dez17-Sep-02 4:32 

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.