Click here to Skip to main content
15,904,655 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: std::string and looping backward Pin
Chris Losinger25-Jul-05 4:56
professionalChris Losinger25-Jul-05 4:56 
isn't i going to be out of bounds as soon as you hit that loop? a string of length 10 won't have an element 10, it'll only have 0..9 .

---

here's how i did a TrimRight

string TrimRight(string str)
{
  const TCHAR	* szTrimChars = _T( " \t" );
  int nIdx	= str.find_last_not_of(szTrimChars);
  if ( str.npos == nIdx )
  {
	str.erase();
  }
  else
  {
	char tSave	= str.at(nIdx);
	m_str.erase(nIdx, str.npos);	
	m_str.append(1, tSave);
  }
  return str;
}



Cleek | Image Toolkits | Thumbnail maker

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 
AnswerRe: Can we launch/open a Web page? Pin
David Crow25-Jul-05 3:03
David Crow25-Jul-05 3:03 

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.