Click here to Skip to main content
15,920,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I pass arguments to a view? Pin
Joaquín M López Muñoz6-Mar-02 9:00
Joaquín M López Muñoz6-Mar-02 9:00 
AnswerRe: How do I pass arguments to a view? Pin
Jonathan Craig6-Mar-02 8:49
Jonathan Craig6-Mar-02 8:49 
GeneralDoc/View borders Pin
Derek Lakin6-Mar-02 4:16
Derek Lakin6-Mar-02 4:16 
GeneralRe: Doc/View borders Pin
Joaquín M López Muñoz6-Mar-02 5:46
Joaquín M López Muñoz6-Mar-02 5:46 
GeneralRe: Doc/View borders Pin
Derek Lakin6-Mar-02 7:06
Derek Lakin6-Mar-02 7:06 
GeneralRe: Doc/View borders Pin
Nish Nishant6-Mar-02 8:19
sitebuilderNish Nishant6-Mar-02 8:19 
GeneralRe: Doc/View borders Pin
Joaquín M López Muñoz6-Mar-02 8:37
Joaquín M López Muñoz6-Mar-02 8:37 
Generaluse right(string,2) in c++ Pin
tbbooher6-Mar-02 3:23
tbbooher6-Mar-02 3:23 
o.k. so say i have data like:

DataString = "2432382ab" or "238233923829cd" or "23882323rq"

and I want to extract the two rightmost elements (say the letters above) in VB I would do:

theLeft = right(DataString,2)

in C++ ?

string theLeft
theLeft = DataString.substr(-2,2);

someone told me i could do this, but I can't get it to work . . .

thanks if you can help!Big Grin | :-D

tim

---------------------------------------
Tim Booher
GeneralRe: use right(string,2) in c++ Pin
Nish Nishant6-Mar-02 3:52
sitebuilderNish Nishant6-Mar-02 3:52 
GeneralRe: use right(string,2) in c++ Pin
Joaquín M López Muñoz6-Mar-02 5:39
Joaquín M López Muñoz6-Mar-02 5:39 
GeneralRe: use right(string,2) in c++ Pin
tbbooher6-Mar-02 5:56
tbbooher6-Mar-02 5:56 
QuestionHow can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Wizard_016-Mar-02 3:23
Wizard_016-Mar-02 3:23 
AnswerRe: How can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Joaquín M López Muñoz6-Mar-02 6:05
Joaquín M López Muñoz6-Mar-02 6:05 
GeneralSizing CSplitterWnd columns Pin
Mark Donkers6-Mar-02 3:10
Mark Donkers6-Mar-02 3:10 
GeneralTeach me,come in please! Pin
big20026-Mar-02 3:08
big20026-Mar-02 3:08 
GeneralRe: Teach me,come in please! Pin
Mazdak6-Mar-02 3:25
Mazdak6-Mar-02 3:25 
QuestionHow can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Wizard_016-Mar-02 3:08
Wizard_016-Mar-02 3:08 
AnswerRe: How can I draw scrollbar created by WS_VSCROOL in non-client area myseft Pin
Tomasz Sowinski6-Mar-02 3:19
Tomasz Sowinski6-Mar-02 3:19 
GeneralRe: I hate to do this but, i just got one more question... Pin
Mark Donkers6-Mar-02 2:58
Mark Donkers6-Mar-02 2:58 
GeneralRe: I hate to do this but, i just got one more question... Pin
Joaquín M López Muñoz6-Mar-02 3:04
Joaquín M López Muñoz6-Mar-02 3:04 
GeneralRe: I hate to do this but, i just got one more question... Pin
Christian Graus6-Mar-02 10:26
protectorChristian Graus6-Mar-02 10:26 
GeneralRe: I hate to do this but, i just got one more question... Pin
SilverShalkin6-Mar-02 12:11
SilverShalkin6-Mar-02 12:11 
GeneralRe: I hate to do this but, i just got one more question... Pin
Christian Graus6-Mar-02 21:13
protectorChristian Graus6-Mar-02 21:13 
Generaldamn CSocket ! Pin
Mauricio Ritter6-Mar-02 0:35
Mauricio Ritter6-Mar-02 0:35 
GeneralRe: damn CSocket ! Pin
Nish Nishant6-Mar-02 0:46
sitebuilderNish Nishant6-Mar-02 0:46 

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.