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

C / C++ / MFC

 
GeneralRe: Have your ever used debugger? Pin
Tomasz Sowinski31-May-02 22:43
Tomasz Sowinski31-May-02 22:43 
GeneralRe: Have your ever used debugger? Pin
pnpfriend1-Jun-02 5:51
pnpfriend1-Jun-02 5:51 
GeneralString Manipulation Problem Pin
Sidney31-May-02 8:36
Sidney31-May-02 8:36 
GeneralRe: String Manipulation Problem Pin
Navin31-May-02 8:57
Navin31-May-02 8:57 
GeneralRe: String Manipulation Problem Pin
Jonathan Craig31-May-02 9:45
Jonathan Craig31-May-02 9:45 
GeneralRe: String Manipulation Problem Pin
Navin31-May-02 10:16
Navin31-May-02 10:16 
GeneralRe: String Manipulation Problem Pin
Sidney31-May-02 11:37
Sidney31-May-02 11:37 
GeneralRe: String Manipulation Problem Pin
Christian Graus31-May-02 13:09
protectorChristian Graus31-May-02 13:09 
No-one does anything 'in' STL. The standard template library is part of standard C++ and is available to ALL C++ programs. The std::string class exposes iterators and is therefore considered by some to be a part of STL. I guess it is a specialisation - a container that holds characters.

CString is part of MFC, and can be used in MFC programs. Many classes exist online that emulate CString's functionality for non-MFC programs.

std::string has a substr method which takes and returns exactly what you want

std::string s("Gargle Mouse");

MessageBox(0, s.substr(5, 5).c_str(), "", 0);

should ( I am doing this untested ) bring up a dialog that said 'le Mo'.



Christian

I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
General"right way" to display hex number in edit Pin
BlackDogEngineering31-May-02 8:34
BlackDogEngineering31-May-02 8:34 
GeneralRe: "right way" to display hex number in edit Pin
Ravi Bhavnani31-May-02 8:59
professionalRavi Bhavnani31-May-02 8:59 
GeneralRe: "right way" to display hex number in edit Pin
Michael Dunn31-May-02 11:46
sitebuilderMichael Dunn31-May-02 11:46 
Generalerror C2660: 'new' : function does not take 3 parameters Pin
Crystal31-May-02 8:37
Crystal31-May-02 8:37 
GeneralRe: error C2660: 'new' : function does not take 3 parameters Pin
Ed Gadziemski31-May-02 11:15
professionalEd Gadziemski31-May-02 11:15 
GeneralRe: error C2660: 'new' : function does not take 3 parameters Pin
Christian Graus31-May-02 13:10
protectorChristian Graus31-May-02 13:10 
GeneralRe: error C2660: 'new' : function does not take 3 parameters Pin
Ed Gadziemski31-May-02 14:47
professionalEd Gadziemski31-May-02 14:47 
GeneralRe: error C2660: 'new' : function does not take 3 parameters Pin
Christian Graus31-May-02 13:13
protectorChristian Graus31-May-02 13:13 
GeneralRe: error C2660: 'new' : function does not take 3 parameters Pin
Ed Gadziemski1-Jun-02 4:07
professionalEd Gadziemski1-Jun-02 4:07 
QuestionHow can I add a splash screen to my VC++.net porject??? Pin
chaolong31-May-02 8:13
chaolong31-May-02 8:13 
Generaltimespec equivalent in C++ Pin
lucy31-May-02 8:19
lucy31-May-02 8:19 
GeneralRe: timespec equivalent in C++ Pin
Tomasz Sowinski31-May-02 8:17
Tomasz Sowinski31-May-02 8:17 
GeneralRe: timespec equivalent in C++ Pin
lucy31-May-02 8:26
lucy31-May-02 8:26 
GeneralRe: timespec equivalent in C++ Pin
Tomasz Sowinski31-May-02 8:25
Tomasz Sowinski31-May-02 8:25 
GeneralRe: timespec equivalent in C++ Pin
lucy31-May-02 8:36
lucy31-May-02 8:36 
GeneralProgramatically Opening Menus Pin
31-May-02 8:00
suss31-May-02 8:00 
GeneralRe: Programatically Opening Menus Pin
James R. Twine31-May-02 10:12
James R. Twine31-May-02 10:12 

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.