Click here to Skip to main content
15,890,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Use a DLLs, which uses mfc as shared dll, from App. that uses mfc as static dll. Pin
Cool Ju25-Jul-05 19:38
Cool Ju25-Jul-05 19:38 
QuestionHow to call parent function from child? Pin
dy1325-Jul-05 4:46
dy1325-Jul-05 4:46 
AnswerRe: How to call parent function from child? Pin
Marc Soleda25-Jul-05 4:59
Marc Soleda25-Jul-05 4:59 
GeneralUse a DLLs, which uses mfc as shared dll, from App. that uses mfc as static dll. Pin
Anonymous25-Jul-05 4:43
Anonymous25-Jul-05 4:43 
GeneralPointers Pin
sroberts8225-Jul-05 4:39
sroberts8225-Jul-05 4:39 
GeneralRe: Pointers Pin
Chris Losinger25-Jul-05 4:44
professionalChris Losinger25-Jul-05 4:44 
GeneralRe: Pointers Pin
toxcct25-Jul-05 5:53
toxcct25-Jul-05 5:53 
Generalstd::string and looping backward Pin
LCI25-Jul-05 4:36
LCI25-Jul-05 4:36 
I wrote a small method that will strip all the spaces from the end of an basic_string up until is reaches text.
So a string like "This is a test " .. would be
"This is a test" once the method is complete.

Something is not working correctly though.

typedef std::string::size_type size_type;
std::string AnyString;
char MySpace = ' ';
size_type CHAR_INDEX;

CHAR_INDEX = AnyString.size();

for (size_type i = CHAR_INDEX;AnyString[i]== MySpace; i--)
AnyString.erase(i,1);

The above source only works when stripping one space, like from
"2003 " to "2003".

If i have "2003 ", it does not work. Can anyone tell me what i am doing wrong here?
GeneralRe: std::string and looping backward Pin
Chris Losinger25-Jul-05 4:56
professionalChris Losinger25-Jul-05 4:56 
GeneralRe: std::string and looping backward Pin
LCI25-Jul-05 5:54
LCI25-Jul-05 5:54 
GeneralRe: std::string and looping backward Pin
S. Senthil Kumar25-Jul-05 6:27
S. Senthil Kumar25-Jul-05 6:27 
GeneralRe: std::string and looping backward Pin
LCI25-Jul-05 10:37
LCI25-Jul-05 10:37 
Generali need help in file.dat Pin
sara-m25-Jul-05 3:47
sara-m25-Jul-05 3:47 
GeneralRe: i need help in file.dat Pin
David Crow25-Jul-05 4:18
David Crow25-Jul-05 4:18 
GeneralRe: i need help in file.dat Pin
sara-m25-Jul-05 6:45
sara-m25-Jul-05 6:45 
GeneralRe: i need help in file.dat Pin
David Crow25-Jul-05 7:05
David Crow25-Jul-05 7:05 
GeneralRe: i need help in file.dat Pin
Halawlaws25-Jul-05 5:27
Halawlaws25-Jul-05 5:27 
GeneralPrint text and image Pin
Larsson25-Jul-05 3:33
Larsson25-Jul-05 3:33 
QuestionHow to create a timer event which can run continuosly. Pin
santoshskulkarni25-Jul-05 3:20
santoshskulkarni25-Jul-05 3:20 
AnswerRe: How to create a timer event which can run continuosly. Pin
toxcct25-Jul-05 3:22
toxcct25-Jul-05 3:22 
AnswerRe: How to create a timer event which can run continuosly. Pin
Marc Soleda25-Jul-05 3:25
Marc Soleda25-Jul-05 3:25 
AnswerRe: How to create a timer event which can run continuosly. Pin
Alex_Y25-Jul-05 3:29
Alex_Y25-Jul-05 3:29 
GeneralOpening a document (MDI) Pin
vasanth100425-Jul-05 3:08
vasanth100425-Jul-05 3:08 
GeneralRe: Opening a document (MDI) Pin
Alex_Y25-Jul-05 3:21
Alex_Y25-Jul-05 3:21 
QuestionCan we launch/open a Web page? Pin
ATC25-Jul-05 2:53
ATC25-Jul-05 2:53 

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.