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

C / C++ / MFC

 
GeneralRe: Expanding TreeNode in windows 7 Pin
rahul.kulshreshtha6-Jul-10 22:21
rahul.kulshreshtha6-Jul-10 22:21 
GeneralRe: Expanding TreeNode in windows 7 Pin
Niklas L6-Jul-10 22:30
Niklas L6-Jul-10 22:30 
AnswerRe: Expanding TreeNode in windows 7 Pin
David Crow7-Jul-10 3:45
David Crow7-Jul-10 3:45 
QuestionC++ - Class not registered even after regsvr32 Pin
ggoutam76-Jul-10 18:39
ggoutam76-Jul-10 18:39 
QuestionRe: C++ - Class not registered even after regsvr32 Pin
«_Superman_»6-Jul-10 20:25
professional«_Superman_»6-Jul-10 20:25 
AnswerRe: C++ - Class not registered even after regsvr32 Pin
ggoutam76-Jul-10 21:02
ggoutam76-Jul-10 21:02 
GeneralRe: C++ - Class not registered even after regsvr32 Pin
«_Superman_»6-Jul-10 21:10
professional«_Superman_»6-Jul-10 21:10 
GeneralRe: C++ - Class not registered even after regsvr32 Pin
ggoutam76-Jul-10 21:17
ggoutam76-Jul-10 21:17 
GeneralRe: C++ - Class not registered even after regsvr32 Pin
«_Superman_»6-Jul-10 21:25
professional«_Superman_»6-Jul-10 21:25 
GeneralRe: C++ - Class not registered even after regsvr32 Pin
Stephen Hewitt6-Jul-10 21:26
Stephen Hewitt6-Jul-10 21:26 
GeneralRe: C++ - Class not registered even after regsvr32 [modified] Pin
ggoutam77-Jul-10 19:49
ggoutam77-Jul-10 19:49 
QuestionHow to built FAT mounter in c++ Pin
AtifKahn6-Jul-10 18:33
AtifKahn6-Jul-10 18:33 
AnswerRe: How to built FAT mounter in c++ Pin
Richard MacCutchan6-Jul-10 21:30
mveRichard MacCutchan6-Jul-10 21:30 
GeneralRe: How to built FAT mounter in c++ Pin
AtifKahn8-Jul-10 18:31
AtifKahn8-Jul-10 18:31 
GeneralRe: How to built FAT mounter in c++ Pin
Richard MacCutchan9-Jul-10 21:26
mveRichard MacCutchan9-Jul-10 21:26 
QuestionRemoving white space Pin
T.RATHA KRISHNAN6-Jul-10 18:23
T.RATHA KRISHNAN6-Jul-10 18:23 
AnswerRe: Removing white space Pin
«_Superman_»6-Jul-10 20:18
professional«_Superman_»6-Jul-10 20:18 
Are you defining a string class of your own?
If not, this is the wrong syntax.

If you're looking to use the stl string, there is already a predefined type called wstring that represents wide strings.

Here are the trim_left and trim_right versions for wstring -
std::wstring trim_right(const std::wstring& str)
{
    return str.substr(0, str.find_last_not_of(L' ') + 1);
}

std::wstring trim_left(const std::wstring& str)
{ 
    size_t st = str.find_first_not_of(L' ');
    return str.substr(st, str.size() - st);
}

«_Superman

I love work. It gives me something to do between weekends.


Microsoft MVP (Visual C++)

Polymorphism in C







AnswerRe: Removing white space Pin
Richard MacCutchan6-Jul-10 21:32
mveRichard MacCutchan6-Jul-10 21:32 
Questionfind a effictive way!! Pin
wbgxx6-Jul-10 17:46
wbgxx6-Jul-10 17:46 
AnswerRe: find a effictive way!! Pin
CPallini6-Jul-10 20:48
mveCPallini6-Jul-10 20:48 
AnswerRe: find a effictive way!! Pin
Richard MacCutchan6-Jul-10 21:35
mveRichard MacCutchan6-Jul-10 21:35 
GeneralRe: find a effictive way!! Pin
wbgxx6-Jul-10 21:56
wbgxx6-Jul-10 21:56 
GeneralRe: find a effictive way!! Pin
Richard MacCutchan7-Jul-10 2:48
mveRichard MacCutchan7-Jul-10 2:48 
QuestionIME Pin
Ed SHaw6-Jul-10 13:46
Ed SHaw6-Jul-10 13:46 
Questionc++ code to solve M simultanous linear equations with N variables - N<M Pin
mrby1236-Jul-10 12:42
mrby1236-Jul-10 12:42 

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.