Click here to Skip to main content
15,911,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralInterprocess communication Pin
^GeeK^26-Sep-01 21:58
^GeeK^26-Sep-01 21:58 
GeneralRe: Interprocess communication Pin
Braulio Dez26-Sep-01 22:48
Braulio Dez26-Sep-01 22:48 
GeneralPassing Messages Between Processes Pin
26-Sep-01 20:53
suss26-Sep-01 20:53 
GeneralRe: Passing Messages Between Processes Pin
Michael Dunn26-Sep-01 21:16
sitebuilderMichael Dunn26-Sep-01 21:16 
GeneralRe: Passing Messages Between Processes Pin
26-Sep-01 21:35
suss26-Sep-01 21:35 
GeneralRe: Passing Messages Between Processes Pin
Christian Graus27-Sep-01 2:34
protectorChristian Graus27-Sep-01 2:34 
GeneralDirectX book Pin
26-Sep-01 20:41
suss26-Sep-01 20:41 
Generalextract a substring from CString Pin
Tryhard26-Sep-01 19:02
Tryhard26-Sep-01 19:02 
Hi all,

I am new to C++ and I have to say my biggest hurdle is getting my head around what operations I can do with the various var types. It seems everytime I try and do anything with a CString I get an error telling my 'can't convert CString to char *' or various errors all along these lines.

Anyway I think I am starting to get there Smile | :)

I need to extract a substring from a CString.

i.e.

CString = "This is a test string"

say i need to get the word test out and store it in an word array.
I know what position it starts and i know what position it ends, so I of course know how many chars I need.

What should I use to get that word from the CString and stick it in
say word_array[word_count]???

Any pointers are greatly appreciated,
Cheers Dudes,
Tryhard
Down Under

PS - Thanks to all who have replied to my previous posts
esp. C.G. Thanks Dude, very helpfull Smile | :)





Tryhard Smile | :)
GeneralRe: extract a substring from CString Pin
Christian Graus26-Sep-01 19:12
protectorChristian Graus26-Sep-01 19:12 
QuestionHOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 16:55
suss26-Sep-01 16:55 
AnswerRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 17:22
protectorChristian Graus26-Sep-01 17:22 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
26-Sep-01 19:32
suss26-Sep-01 19:32 
GeneralRe: HOW I CAN USE A LISTVIEW CONTROL IN MY HTML PAGE? Pin
Christian Graus26-Sep-01 19:43
protectorChristian Graus26-Sep-01 19:43 
GeneralMultiple Processes: Threads, Messages, Etc Pin
Eric Sanchez26-Sep-01 16:28
Eric Sanchez26-Sep-01 16:28 
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Michael Dunn26-Sep-01 17:02
sitebuilderMichael Dunn26-Sep-01 17:02 
GeneralRe: Multiple Processes: Threads, Messages, Etc Pin
Eric Sanchez27-Sep-01 2:47
Eric Sanchez27-Sep-01 2:47 
GeneralBitmap Pin
26-Sep-01 15:16
suss26-Sep-01 15:16 
GeneralRe: Bitmap Pin
Christian Graus26-Sep-01 15:54
protectorChristian Graus26-Sep-01 15:54 
General2K and Tasks Pin
Christopher Lord26-Sep-01 15:15
Christopher Lord26-Sep-01 15:15 
GeneralRe: 2K and Tasks Pin
Tomasz Sowinski27-Sep-01 0:31
Tomasz Sowinski27-Sep-01 0:31 
GeneralRe: 2K and Tasks Pin
Christopher Lord27-Sep-01 0:40
Christopher Lord27-Sep-01 0:40 
GeneralRe: 2K and Tasks Pin
Tomasz Sowinski27-Sep-01 0:50
Tomasz Sowinski27-Sep-01 0:50 
GeneralRe: 2K and Tasks Pin
Christopher Lord27-Sep-01 0:53
Christopher Lord27-Sep-01 0:53 
GeneralRe: 2K and Tasks Pin
Anders Molin27-Sep-01 1:02
professionalAnders Molin27-Sep-01 1:02 
QuestionNeed help with d-heap analysis? Pin
26-Sep-01 11:29
suss26-Sep-01 11:29 

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.