Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hiding Dialogs? Pin
Nish Nishant19-Mar-02 13:32
sitebuilderNish Nishant19-Mar-02 13:32 
AnswerRe: Hiding Dialogs? Pin
20-Mar-02 3:02
suss20-Mar-02 3:02 
GeneralToolbar message handlers in .NET Pin
dazinith19-Mar-02 11:15
dazinith19-Mar-02 11:15 
Generalerror code 183 Pin
19-Mar-02 10:49
suss19-Mar-02 10:49 
GeneralRe: error code 183 Pin
Bill Wilson19-Mar-02 14:14
Bill Wilson19-Mar-02 14:14 
Generalbest way to replace items in a string Pin
tbbooher19-Mar-02 9:55
tbbooher19-Mar-02 9:55 
GeneralRe: best way to replace items in a string Pin
Mazdak19-Mar-02 10:27
Mazdak19-Mar-02 10:27 
GeneralRe: best way to replace items in a string Pin
Tim Smith19-Mar-02 10:43
Tim Smith19-Mar-02 10:43 
This is just a simple sample of how you could do it with C-strings.

This code doesn't work for DBCS. But it would be easy to modify for that. (I am being lazy)

void RemoveChars (LPTSTR pszSource, LPCTSTR pszCharacters)
{
    LPTSTR pszIn = pszSource;
    LPTSTR pszOut = pszSource;
    TCHAR c;
    while ((c = *pszIn++) != 0)
    {
        if (_tcschr (pszCharacters, c) == NULL)
            *pszOut++ = c;
    }
    *pszOut = 0;
}




Tim Smith

I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?
GeneralRe: best way to replace items in a string Pin
Nish Nishant19-Mar-02 13:36
sitebuilderNish Nishant19-Mar-02 13:36 
GeneralRe: best way to replace items in a string Pin
Tim Smith19-Mar-02 13:48
Tim Smith19-Mar-02 13:48 
GeneralRe: best way to replace items in a string Pin
tbbooher20-Mar-02 7:29
tbbooher20-Mar-02 7:29 
GeneralRe: best way to replace items in a string Pin
Tim Smith20-Mar-02 7:35
Tim Smith20-Mar-02 7:35 
GeneralRe: best way to replace items in a string Pin
Tim Smith20-Mar-02 7:42
Tim Smith20-Mar-02 7:42 
GeneralRe: best way to replace items in a string Pin
Mazdak19-Mar-02 10:56
Mazdak19-Mar-02 10:56 
GeneralRe: best way to replace items in a string Pin
dazinith19-Mar-02 11:00
dazinith19-Mar-02 11:00 
GeneralRe: best way to replace items in a string Pin
Joaquín M López Muñoz19-Mar-02 11:50
Joaquín M López Muñoz19-Mar-02 11:50 
QuestionSuggestions on Using Grids? Pin
dazinith19-Mar-02 9:08
dazinith19-Mar-02 9:08 
AnswerRe: Suggestions on Using Grids? Pin
Tomasz Sowinski19-Mar-02 9:19
Tomasz Sowinski19-Mar-02 9:19 
AnswerRe: Suggestions on Using Grids? Pin
alex.barylski19-Mar-02 9:52
alex.barylski19-Mar-02 9:52 
GeneralRe: Suggestions on Using Grids? Pin
dazinith19-Mar-02 10:31
dazinith19-Mar-02 10:31 
QuestionDynamic array??? Possible??? Pin
19-Mar-02 8:25
suss19-Mar-02 8:25 
AnswerRe: Dynamic array??? Possible??? Pin
Paul M Watt19-Mar-02 8:42
mentorPaul M Watt19-Mar-02 8:42 
AnswerRe: Dynamic array??? Possible??? Pin
Tomasz Sowinski19-Mar-02 8:49
Tomasz Sowinski19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
Nemanja Trifunovic19-Mar-02 8:49
Nemanja Trifunovic19-Mar-02 8:49 
AnswerRe: Dynamic array??? Possible??? Pin
dazinith19-Mar-02 9:00
dazinith19-Mar-02 9:00 

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.