Do you want to find and replace text (ie text editor) or just get what the user has typed into an edit control?
The find common dialog just gets what the user wants you to find (and replace).
You must then do the work.
Display the dlg.
Get the search strings from the structure returned.
Get the edit text with GetDlgItemText() (or similar)
Now do the required operations (find and replace ect) with the string functions.
The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.