Click here to Skip to main content
15,919,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Paste text into next window Pin
Rickard Andersson2021-May-02 10:43
Rickard Andersson2021-May-02 10:43 
GeneralRe: Paste text into next window Pin
Prem Kumar21-May-02 10:44
Prem Kumar21-May-02 10:44 
GeneralRe: Paste text into next window Pin
Rickard Andersson2021-May-02 10:52
Rickard Andersson2021-May-02 10:52 
GeneralRe: Paste text into next window Pin
Prem Kumar21-May-02 10:55
Prem Kumar21-May-02 10:55 
QuestionEndless Loop? Pin
Emearg21-May-02 9:24
Emearg21-May-02 9:24 
AnswerRe: Endless Loop? Pin
Joaquín M López Muñoz21-May-02 9:36
Joaquín M López Muñoz21-May-02 9:36 
AnswerRe: Endless Loop? Pin
PJ Arends21-May-02 9:35
professionalPJ Arends21-May-02 9:35 
AnswerRe: Endless Loop? Pin
Bill Wilson21-May-02 12:04
Bill Wilson21-May-02 12:04 
This will definitely loop if oldstr is a subset of newstr. The suggestion of adding lstrlen(newstr) to pos should eliminate the problem. This prevents the .Find method from scanning the newstr text.

I ran this. It doesn't loop if newstr and oldstr are disjoint sets.

BTW: This kind of problem is extremely easy to solve if you step though the code. You will be a much more productive coder if you learn basic debugging techniques.

Good Luck,
Bill
GeneralRe: Endless Loop? Pin
Ravi Bhavnani21-May-02 12:26
professionalRavi Bhavnani21-May-02 12:26 
General"'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
redeemer21-May-02 8:10
redeemer21-May-02 8:10 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
Joaquín M López Muñoz21-May-02 8:29
Joaquín M López Muñoz21-May-02 8:29 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
redeemer21-May-02 8:40
redeemer21-May-02 8:40 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
Joaquín M López Muñoz21-May-02 8:43
Joaquín M López Muñoz21-May-02 8:43 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
redeemer21-May-02 9:01
redeemer21-May-02 9:01 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
Joaquín M López Muñoz21-May-02 9:13
Joaquín M López Muñoz21-May-02 9:13 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
redeemer21-May-02 9:11
redeemer21-May-02 9:11 
GeneralRe: "'StrRetToBuf' : undeclared identifier" even when i have included shlwapi.h and added shlwapi.lib Pin
Michael Dunn21-May-02 14:02
sitebuilderMichael Dunn21-May-02 14:02 
GeneralSendMessage() and CFormView::OnFilePrint() Pin
dazinith21-May-02 8:14
dazinith21-May-02 8:14 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
Joaquín M López Muñoz21-May-02 8:25
Joaquín M López Muñoz21-May-02 8:25 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
dazinith21-May-02 9:21
dazinith21-May-02 9:21 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
Joaquín M López Muñoz21-May-02 9:27
Joaquín M López Muñoz21-May-02 9:27 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
dazinith21-May-02 9:54
dazinith21-May-02 9:54 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
Joaquín M López Muñoz21-May-02 11:16
Joaquín M López Muñoz21-May-02 11:16 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
Philip Patrick21-May-02 8:36
professionalPhilip Patrick21-May-02 8:36 
GeneralRe: SendMessage() and CFormView::OnFilePrint() Pin
Jonathan Craig21-May-02 9:44
Jonathan Craig21-May-02 9:44 

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.