Click here to Skip to main content
15,921,174 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetDlgItem crashes Pin
31-May-02 4:50
suss31-May-02 4:50 
GeneralRe: GetDlgItem crashes Pin
mikeh31-May-02 5:00
mikeh31-May-02 5:00 
GeneralRe: GetDlgItem crashes Pin
31-May-02 5:35
suss31-May-02 5:35 
GeneralRe: GetDlgItem crashes Pin
mikeh31-May-02 7:47
mikeh31-May-02 7:47 
GeneralRe: GetDlgItem crashes Pin
James R. Twine31-May-02 10:33
James R. Twine31-May-02 10:33 
GeneralProblem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 2:01
Munkijo31-May-02 2:01 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Mazdak31-May-02 2:34
Mazdak31-May-02 2:34 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 7:27
Munkijo31-May-02 7:27 
It's not a very elegant method, but the code is:

void CParser::StandardiseHTML ( CString* HTMLfile )
{
HTMLfile->Replace ("@", "@");
HTMLfile->Replace ('\n', ' ');
HTMLfile->Replace ('\t', ' ');
HTMLfile->Replace (" ", " ");

while ( HTMLfile->Replace (" ", " ") != 0 );

HTMLfile->Replace (" =", "=");
HTMLfile->Replace ("= ", "=");
HTMLfile->MakeUpper ();
}

It manages to get into trouble with the statement

HTMLfile->Replace (" ", " ");
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Munkijo31-May-02 7:33
Munkijo31-May-02 7:33 
GeneralRe: Problem with CString::Replace ( LPCTSTR lpszOld, LPCTSTR lpszNew ); Pin
Bill Wilson31-May-02 14:22
Bill Wilson31-May-02 14:22 
GeneralTo Release or Not to Release... Pin
Braulio Dez31-May-02 0:59
Braulio Dez31-May-02 0:59 
GeneralRe: To Release or Not to Release... Pin
Tomasz Sowinski31-May-02 1:21
Tomasz Sowinski31-May-02 1:21 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 1:21
Len Holgate31-May-02 1:21 
GeneralRe: To Release or Not to Release... Pin
Tomasz Sowinski31-May-02 2:29
Tomasz Sowinski31-May-02 2:29 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 2:28
Len Holgate31-May-02 2:28 
GeneralRe: To Release or Not to Release... Pin
Len Holgate31-May-02 1:16
Len Holgate31-May-02 1:16 
GeneralRe: To Release or Not to Release... Pin
Mauricio Ritter31-May-02 1:35
Mauricio Ritter31-May-02 1:35 
Generala question of edit control Pin
31-May-02 0:55
suss31-May-02 0:55 
GeneralRe: a question of edit control Pin
User 665831-May-02 4:45
User 665831-May-02 4:45 
GeneralRe: a question of edit control Pin
ilavl31-May-02 17:07
ilavl31-May-02 17:07 
GeneralRe: a question of edit control Pin
valikac31-May-02 5:15
valikac31-May-02 5:15 
GeneralRe: a question of edit control Pin
Tomasz Sowinski31-May-02 5:32
Tomasz Sowinski31-May-02 5:32 
GeneralRe: a question of edit control Pin
valikac31-May-02 5:27
valikac31-May-02 5:27 
GeneralRe: a question of edit control Pin
Tomasz Sowinski31-May-02 5:38
Tomasz Sowinski31-May-02 5:38 
GeneralRe: a question of edit control Pin
valikac31-May-02 5:36
valikac31-May-02 5:36 

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.