Click here to Skip to main content
15,915,319 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Handling of multiple threads Pin
Mark Salsbery4-Jun-07 4:35
Mark Salsbery4-Jun-07 4:35 
GeneralRe: Handling of multiple threads Pin
zudroj4-Jun-07 21:20
zudroj4-Jun-07 21:20 
GeneralRe: Handling of multiple threads Pin
Mark Salsbery5-Jun-07 4:26
Mark Salsbery5-Jun-07 4:26 
GeneralRe: Handling of multiple threads Pin
zudroj5-Jun-07 21:36
zudroj5-Jun-07 21:36 
AnswerRe: Handling of multiple threads Pin
CPallini4-Jun-07 5:05
mveCPallini4-Jun-07 5:05 
QuestionCreating a color table Pin
TheDelChop4-Jun-07 2:50
TheDelChop4-Jun-07 2:50 
AnswerRe: Creating a color table Pin
CPallini4-Jun-07 3:57
mveCPallini4-Jun-07 3:57 
QuestionSpecific editing of a CString Pin
jasn Smith4-Jun-07 2:50
jasn Smith4-Jun-07 2:50 
I am currently a student and have wondered into the realm of c++. The problem is that I am creating a program that can edit NC code for multi-axial milling machines. The problem is as follows.

I have the line of text that I wish to edit, this has been stored as a CString. And would look something as follows: N650 G1 X152.5 S5200

The only part of this string that I want to change is the S5200, and would like to change it to say S8000.

It isn’t possible to read the different parts of the code into the CString as the whole line is read from an XML. And the number of characters before the S5200 is not always constant

Is there a way to read the CString until the S Character is found and then write over it?


Any help with this would be much appreciated and my apologies if this is a menial question, it is however hard to find such information on something so specific.

Regards

Jason Smith
AnswerRe: Specific editing of a CString Pin
_AnsHUMAN_ 4-Jun-07 3:10
_AnsHUMAN_ 4-Jun-07 3:10 
AnswerRe: Specific editing of a CString Pin
David Crow4-Jun-07 3:29
David Crow4-Jun-07 3:29 
QuestionFont Size Displays [modified] Pin
_AnsHUMAN_ 4-Jun-07 2:48
_AnsHUMAN_ 4-Jun-07 2:48 
AnswerRe: Font Size Displays Pin
Arman S.4-Jun-07 3:15
Arman S.4-Jun-07 3:15 
GeneralRe: Font Size Displays [modified] Pin
_AnsHUMAN_ 4-Jun-07 3:24
_AnsHUMAN_ 4-Jun-07 3:24 
AnswerRe: Font Size Displays Pin
Mark Salsbery4-Jun-07 4:47
Mark Salsbery4-Jun-07 4:47 
Questionsubclassing an activex control in mfc [modified] Pin
dkmr4-Jun-07 2:27
dkmr4-Jun-07 2:27 
AnswerRe: subclassing an activex control in mfc Pin
Naveen4-Jun-07 15:54
Naveen4-Jun-07 15:54 
Questionhow to make an indicator Pin
bigphish4-Jun-07 2:14
bigphish4-Jun-07 2:14 
AnswerRe: how to make an indicator Pin
David Crow4-Jun-07 3:32
David Crow4-Jun-07 3:32 
GeneralRe: how to make an indicator Pin
vivekphlp4-Jun-07 23:38
vivekphlp4-Jun-07 23:38 
GeneralRe: how to make an indicator Pin
David Crow5-Jun-07 2:37
David Crow5-Jun-07 2:37 
GeneralRe: how to make an indicator Pin
vivekphlp5-Jun-07 18:31
vivekphlp5-Jun-07 18:31 
QuestionAdding a new image (img tag) to the document in Internet Explorer Pin
ajitatif angajetor4-Jun-07 1:30
ajitatif angajetor4-Jun-07 1:30 
QuestionHow to align toolbars? Pin
Anurag Gandhi4-Jun-07 1:13
professionalAnurag Gandhi4-Jun-07 1:13 
GeneralRe: How to align toolbars? Pin
Rajkumar R4-Jun-07 1:24
Rajkumar R4-Jun-07 1:24 
GeneralRe: How to align toolbars? Pin
Anurag Gandhi4-Jun-07 1:38
professionalAnurag Gandhi4-Jun-07 1:38 

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.