Click here to Skip to main content
15,899,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChanging caption in visual C++ 6 Pin
mt_samiei11-Jun-06 22:22
mt_samiei11-Jun-06 22:22 
AnswerRe: Changing caption in visual C++ 6 Pin
Cedric Moonen11-Jun-06 22:28
Cedric Moonen11-Jun-06 22:28 
AnswerRe: Changing caption in visual C++ 6 Pin
Viorel.11-Jun-06 22:34
Viorel.11-Jun-06 22:34 
AnswerRe: Changing caption in visual C++ 6 Pin
Eytukan11-Jun-06 22:58
Eytukan11-Jun-06 22:58 
QuestionActive directory and user login names/groups [modified] Pin
vikramlinux11-Jun-06 22:12
vikramlinux11-Jun-06 22:12 
AnswerRe: Active directory and user login names/groups Pin
Viorel.11-Jun-06 23:49
Viorel.11-Jun-06 23:49 
Questionremoving spaces-newbie Pin
antonaras11-Jun-06 21:41
antonaras11-Jun-06 21:41 
AnswerRe: removing spaces-newbie [modified] Pin
Viorel.11-Jun-06 21:52
Viorel.11-Jun-06 21:52 
In MFC, I think you can read the file in line-by-line manner using CStdioFile class, and then reduce the number of spaces using multiple calls to Replace member of CString class:

while(s.Replace("__", "_") != 0);

Next, you can write strings to a new file. If you need to store them in the same file, then remove the old file and rename the new one.


-- modified at 4:05 Monday 12th June, 2006
GeneralRe: removing spaces-newbie Pin
antonaras11-Jun-06 21:59
antonaras11-Jun-06 21:59 
GeneralRe: removing spaces-newbie Pin
Sarath C11-Jun-06 22:08
Sarath C11-Jun-06 22:08 
GeneralRe: removing spaces-newbie Pin
antonaras11-Jun-06 22:22
antonaras11-Jun-06 22:22 
GeneralRe: removing spaces-newbie Pin
toxcct11-Jun-06 22:55
toxcct11-Jun-06 22:55 
GeneralRe: removing spaces-newbie Pin
toxcct11-Jun-06 22:12
toxcct11-Jun-06 22:12 
GeneralRe: removing spaces-newbie Pin
Sarath C11-Jun-06 22:16
Sarath C11-Jun-06 22:16 
GeneralRe: removing spaces-newbie Pin
Viorel.11-Jun-06 22:19
Viorel.11-Jun-06 22:19 
GeneralRe: removing spaces-newbie Pin
antonaras11-Jun-06 22:31
antonaras11-Jun-06 22:31 
GeneralRe: removing spaces-newbie Pin
David Crow12-Jun-06 3:08
David Crow12-Jun-06 3:08 
GeneralRe: removing spaces-newbie Pin
Viorel.12-Jun-06 3:20
Viorel.12-Jun-06 3:20 
GeneralRe: removing spaces-newbie Pin
David Crow12-Jun-06 3:29
David Crow12-Jun-06 3:29 
QuestionSeparate actions on Button click and button release Pin
Larssen2511-Jun-06 21:37
Larssen2511-Jun-06 21:37 
AnswerRe: Separate actions on Button click and button release Pin
_AnsHUMAN_ 11-Jun-06 22:15
_AnsHUMAN_ 11-Jun-06 22:15 
AnswerRe: Separate actions on Button click and button release Pin
Hamid_RT11-Jun-06 22:47
Hamid_RT11-Jun-06 22:47 
Questionadd source files to embedded VC 4.0 Pin
George_George11-Jun-06 21:36
George_George11-Jun-06 21:36 
Questionminimise and maximize button Pin
Manjunath S11-Jun-06 21:13
Manjunath S11-Jun-06 21:13 
AnswerRe: minimise and maximize button Pin
Sarath C11-Jun-06 22:14
Sarath C11-Jun-06 22:14 

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.