Click here to Skip to main content
15,908,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Flash swf Pin
Nishad S2-Jan-09 1:52
Nishad S2-Jan-09 1:52 
GeneralRe: Flash swf Pin
Jijo.Raj2-Jan-09 2:19
Jijo.Raj2-Jan-09 2:19 
GeneralRe: Flash swf Pin
Nishad S2-Jan-09 2:25
Nishad S2-Jan-09 2:25 
GeneralRe: Flash swf Pin
Jijo.Raj2-Jan-09 2:42
Jijo.Raj2-Jan-09 2:42 
GeneralRe: Flash swf Pin
Nishad S2-Jan-09 3:06
Nishad S2-Jan-09 3:06 
Questionhow to get substring from a string...... Pin
vijay.victory2-Jan-09 0:13
vijay.victory2-Jan-09 0:13 
AnswerRe: how to get substring from a string...... Pin
Jijo.Raj2-Jan-09 0:24
Jijo.Raj2-Jan-09 0:24 
AnswerRe: how to get substring from a string...... Pin
Nibu babu thomas2-Jan-09 0:26
Nibu babu thomas2-Jan-09 0:26 
Member 3220373 wrote:
and I wanted to copy a substring from a main string
e.g:;-- String1 :- "Visual c++ is Great..";
subStr = "c++";
how can I get this???
I have used strstr() function to get substring..
but it returns first occurance and full sunstring follwing that,,

plz help me..
I need it dedly..
I used another method to get it..
but its lengthy...


Using CString...

First use CString::Find and then CString::Mid to extract substring.

Using std::string

First use std::string::find and then std::string::substr.


Nibu babu thomas
Microsoft MVP for VC++


Code must be written to be read, not by the compiler, but by another human being.

Programming Blog: http://nibuthomas.wordpress.com

GeneralRe: how to get substring from a string...... Pin
vijay.victory2-Jan-09 0:37
vijay.victory2-Jan-09 0:37 
GeneralRe: how to get substring from a string...... Pin
Nibu babu thomas2-Jan-09 0:42
Nibu babu thomas2-Jan-09 0:42 
GeneralRe: how to get substring from a string...... Pin
vijay.victory2-Jan-09 0:47
vijay.victory2-Jan-09 0:47 
GeneralRe: how to get substring from a string...... Pin
Nibu babu thomas2-Jan-09 0:50
Nibu babu thomas2-Jan-09 0:50 
GeneralRe: how to get substring from a string...... Pin
David Crow2-Jan-09 3:53
David Crow2-Jan-09 3:53 
Question_bstr_t crashes Pin
amrit11232-Jan-09 0:09
amrit11232-Jan-09 0:09 
AnswerRe: _bstr_t crashes Pin
Nibu babu thomas2-Jan-09 0:27
Nibu babu thomas2-Jan-09 0:27 
GeneralRe: _bstr_t crashes Pin
amrit11232-Jan-09 17:08
amrit11232-Jan-09 17:08 
GeneralRe: _bstr_t crashes Pin
amrit11232-Jan-09 17:19
amrit11232-Jan-09 17:19 
QuestionAny problems with ON_MESSAGE in Visual C++ 8? Pin
SanjaySMK1-Jan-09 23:49
SanjaySMK1-Jan-09 23:49 
AnswerRe: Any problems with ON_MESSAGE in Visual C++ 8? Pin
Jijo.Raj2-Jan-09 0:04
Jijo.Raj2-Jan-09 0:04 
GeneralRe: Any problems with ON_MESSAGE in Visual C++ 8? [modified] Pin
SanjaySMK2-Jan-09 1:13
SanjaySMK2-Jan-09 1:13 
GeneralRe: Any problems with ON_MESSAGE in Visual C++ 8? Pin
Jijo.Raj2-Jan-09 2:36
Jijo.Raj2-Jan-09 2:36 
QuestionOwner Draw Menu[BCMenu] cant change the text color of menuitem on menuBar Pin
karhong1-Jan-09 22:24
karhong1-Jan-09 22:24 
QuestionCompare two file Pin
NewVC++1-Jan-09 21:28
NewVC++1-Jan-09 21:28 
AnswerRe: Compare two file Pin
«_Superman_»1-Jan-09 22:09
professional«_Superman_»1-Jan-09 22:09 
Question^? Pin
dec821-Jan-09 21:20
dec821-Jan-09 21:20 

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.