Click here to Skip to main content
15,886,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSimple and Easy to Use Graph or Plotter Pin
Andy2026-Dec-07 5:13
Andy2026-Dec-07 5:13 
GeneralRe: Simple and Easy to Use Graph or Plotter Pin
toxcct6-Dec-07 5:56
toxcct6-Dec-07 5:56 
JokeRe: Simple and Easy to Use Graph or Plotter [modified] Pin
Cedric Moonen6-Dec-07 7:57
Cedric Moonen6-Dec-07 7:57 
GeneralRe: Simple and Easy to Use Graph or Plotter Pin
ThatsAlok6-Dec-07 20:12
ThatsAlok6-Dec-07 20:12 
GeneralRe: Simple and Easy to Use Graph or Plotter Pin
super_ttd9-Dec-07 5:28
super_ttd9-Dec-07 5:28 
QuestionDelete characters from a string? Pin
bosfan6-Dec-07 5:01
bosfan6-Dec-07 5:01 
AnswerRe: Delete characters from a string? Pin
David Crow6-Dec-07 5:10
David Crow6-Dec-07 5:10 
AnswerRe: Delete characters from a string? Pin
CPallini6-Dec-07 5:18
mveCPallini6-Dec-07 5:18 
You need to:
(1) read the file.
(2) change the read content, removing CR LF occurrences.
(3) write again the content to the file.

You can use a brute force approach, i.e. reading a char at time and discarding unwantend ones (maybe you need to lookahead 1 char) and then rewriting all remaining characters. On the other hand, you can speed up the whole operation using buffers.

Hope that helps.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.


AnswerRe: Delete characters from a string? Pin
led mike6-Dec-07 5:26
led mike6-Dec-07 5:26 
QuestionMFC application crash possibily due to runtime version conflict of VC++ 2005 redistributable binaries Pin
ComplexLifeForm6-Dec-07 4:29
ComplexLifeForm6-Dec-07 4:29 
GeneralRe: MFC application crash possibily due to runtime version conflict of VC++ 2005 redistributable binaries Pin
KarstenK6-Dec-07 4:42
mveKarstenK6-Dec-07 4:42 
QuestionVisual C++ 2008 needs framework to run? Pin
Dr. Emmett Brown6-Dec-07 3:55
Dr. Emmett Brown6-Dec-07 3:55 
AnswerRe: Visual C++ 2008 needs framework to run? Pin
toxcct6-Dec-07 4:27
toxcct6-Dec-07 4:27 
AnswerRe: Visual C++ 2008 needs framework to run? Pin
KarstenK6-Dec-07 4:43
mveKarstenK6-Dec-07 4:43 
GeneralRe: Visual C++ 2008 needs framework to run? Pin
Dr. Emmett Brown6-Dec-07 5:19
Dr. Emmett Brown6-Dec-07 5:19 
GeneralRe: Visual C++ 2008 needs framework to run? Pin
led mike6-Dec-07 5:58
led mike6-Dec-07 5:58 
AnswerRe: Visual C++ 2008 needs framework to run? Pin
George L. Jackson6-Dec-07 7:11
George L. Jackson6-Dec-07 7:11 
GeneralRe: Visual C++ 2008 needs framework to run? Pin
Dr. Emmett Brown6-Dec-07 8:47
Dr. Emmett Brown6-Dec-07 8:47 
GeneralThe 2D Graph Component With Zoom Capability - SmartGraph Build Errors Pin
Andy2026-Dec-07 3:48
Andy2026-Dec-07 3:48 
GeneralRe: The 2D Graph Component With Zoom Capability - SmartGraph Build Errors Pin
CPallini6-Dec-07 4:35
mveCPallini6-Dec-07 4:35 
GeneralI'm a newbee on this site... Pin
Allen C.6-Dec-07 3:38
Allen C.6-Dec-07 3:38 
GeneralRe: I'm a newbee on this site... Pin
Matthew Faithfull6-Dec-07 3:44
Matthew Faithfull6-Dec-07 3:44 
GeneralRe: I'm a newbee on this site... Pin
toxcct6-Dec-07 3:45
toxcct6-Dec-07 3:45 
GeneralRe: I'm a newbee on this site... Pin
Hamid_RT6-Dec-07 3:58
Hamid_RT6-Dec-07 3:58 
Generalhttps problem Pin
Sundararajan6-Dec-07 3:16
Sundararajan6-Dec-07 3:16 

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.