Click here to Skip to main content
15,918,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Application causing Windows clock drift? Pin
John Aldrich13-Jun-03 18:46
John Aldrich13-Jun-03 18:46 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark13-Jun-03 19:13
Gavin Stark13-Jun-03 19:13 
GeneralRe: Application causing Windows clock drift? Pin
Gavin Stark16-Jun-03 17:54
Gavin Stark16-Jun-03 17:54 
QuestionHow I can access an external MS Access database (.mdb) Pin
ATC13-Jun-03 16:48
ATC13-Jun-03 16:48 
AnswerRe: How I can access an external MS Access database (.mdb) Pin
John M. Drescher13-Jun-03 17:35
John M. Drescher13-Jun-03 17:35 
GeneralRe: How I can access an external MS Access database (.mdb) Pin
ATC14-Jun-03 4:35
ATC14-Jun-03 4:35 
GeneralHiding Mainframe without flicker Pin
pranavamhari13-Jun-03 15:47
pranavamhari13-Jun-03 15:47 
QuestionHow to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 15:43
FlyingDancer13-Jun-03 15:43 
AnswerRe: How to get a sub-member's pointer Pin
John M. Drescher13-Jun-03 15:55
John M. Drescher13-Jun-03 15:55 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 16:02
FlyingDancer13-Jun-03 16:02 
GeneralRe: How to get a sub-member's pointer Pin
Tim Smith13-Jun-03 16:21
Tim Smith13-Jun-03 16:21 
GeneralRe: How to get a sub-member's pointer Pin
Ryan Binns14-Jun-03 4:50
Ryan Binns14-Jun-03 4:50 
AnswerRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 16:33
sitebuilderMichael Dunn13-Jun-03 16:33 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer13-Jun-03 19:14
FlyingDancer13-Jun-03 19:14 
GeneralRe: How to get a sub-member's pointer Pin
Michael Dunn13-Jun-03 19:22
sitebuilderMichael Dunn13-Jun-03 19:22 
GeneralRe: How to get a sub-member's pointer Pin
Toni7813-Jun-03 19:27
Toni7813-Jun-03 19:27 
GeneralRe: How to get a sub-member's pointer Pin
John M. Drescher14-Jun-03 4:42
John M. Drescher14-Jun-03 4:42 
AnswerRe: How to get a sub-member's pointer Pin
Brian Delahunty14-Jun-03 0:39
Brian Delahunty14-Jun-03 0:39 
GeneralRe: How to get a sub-member's pointer Pin
FlyingDancer14-Jun-03 1:12
FlyingDancer14-Jun-03 1:12 
GeneralRe: How to get a sub-member's pointer Pin
Brian Delahunty14-Jun-03 1:21
Brian Delahunty14-Jun-03 1:21 
GeneralFONT Pin
Anthony988713-Jun-03 13:24
Anthony988713-Jun-03 13:24 
QuestionHow to sync folders over the internet? Pin
IGx8913-Jun-03 12:59
IGx8913-Jun-03 12:59 
AnswerRe: How to sync folders over the internet? Pin
valikac13-Jun-03 15:12
valikac13-Jun-03 15:12 
AnswerRe: How to sync folders over the internet? Pin
Brian Delahunty14-Jun-03 0:30
Brian Delahunty14-Jun-03 0:30 
GeneralSearch Algorithims Pin
Steven M Hunt13-Jun-03 12:21
Steven M Hunt13-Jun-03 12:21 
What's wrong with this function i used to find text in an edit control? I don't understand, it should work:
//CFindReplaceDialog FindDlg pre-defined
if (FindDlg->FindNext())
{
CString data;
GetDlgItemText(IDD_EDIT, data);
int FindIndex = data.Find(_T(FindDlg->GetFindString()), FindStart);//int FindStart global variable
if (FindIndex > -1)
{
FindStart = FindIndex + FindDlg->GetFindString().GetLength();
CEdit *edit = (CEdit *) GetDlgItem(IDD_EDIT);
MessageBox("testing...");
edit->SetSel(FindIndex, FindStart, FALSE);
}
else
{
MessageBox("The text you entered was not found.", "Text not found", MB_ICONINFORMATION);
}
}

What could be wrong with this code?

-- Steve

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.