Click here to Skip to main content
15,921,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Very URGENT...Plzzzz HELP Pin
jhwurmbach13-Feb-08 0:57
jhwurmbach13-Feb-08 0:57 
GeneralRe: Very URGENT...Plzzzz HELP Pin
Justin Perez13-Feb-08 2:59
Justin Perez13-Feb-08 2:59 
GeneralRe: Very URGENT...Plzzzz HELP Pin
Rajesh R Subramanian13-Feb-08 18:15
professionalRajesh R Subramanian13-Feb-08 18:15 
GeneralRe: Very URGENT...Plzzzz HELP Pin
Justin Perez14-Feb-08 2:25
Justin Perez14-Feb-08 2:25 
GeneralRe: Very URGENT...Plzzzz HELP Pin
Rajesh R Subramanian14-Feb-08 7:02
professionalRajesh R Subramanian14-Feb-08 7:02 
Questionruning a C++ progrm from another Pin
Petra12-Feb-08 23:14
Petra12-Feb-08 23:14 
GeneralRe: runing a C++ progrm from another Pin
CPallini12-Feb-08 23:44
mveCPallini12-Feb-08 23:44 
GeneralRe: runing a C++ progrm from another Pin
jhwurmbach12-Feb-08 23:50
jhwurmbach12-Feb-08 23:50 
GeneralRe: runing a C++ progrm from another Pin
David Crow13-Feb-08 2:47
David Crow13-Feb-08 2:47 
QuestionPopUp Window Pin
Jhony george12-Feb-08 23:01
Jhony george12-Feb-08 23:01 
GeneralRe: PopUp Window Pin
Rajesh R Subramanian12-Feb-08 23:05
professionalRajesh R Subramanian12-Feb-08 23:05 
GeneralRe: PopUp Window Pin
Iain Clarke, Warrior Programmer12-Feb-08 23:54
Iain Clarke, Warrior Programmer12-Feb-08 23:54 
QuestionCreate new project in eMbadded VC++ 4 Pin
almon112-Feb-08 22:56
almon112-Feb-08 22:56 
GeneralRe: Create new project in eMbadded VC++ 4 Pin
Ali Rafiee21-Feb-08 9:38
Ali Rafiee21-Feb-08 9:38 
QuestionAbout ActiveX Control Pin
manish.patel12-Feb-08 22:38
manish.patel12-Feb-08 22:38 
GeneralRe: About ActiveX Control Pin
Don Box12-Feb-08 23:12
Don Box12-Feb-08 23:12 
GeneralRe: About ActiveX Control Pin
manish.patel12-Feb-08 23:35
manish.patel12-Feb-08 23:35 
GeneralRe: About ActiveX Control Pin
Nitheesh George14-Feb-08 16:40
Nitheesh George14-Feb-08 16:40 
GeneralRe: About ActiveX Control Pin
manish.patel14-Feb-08 18:02
manish.patel14-Feb-08 18:02 
QuestionRe: About ActiveX Control Pin
Nitheesh George14-Feb-08 22:38
Nitheesh George14-Feb-08 22:38 
Generalstuck with progress bar Pin
Chandrasekharan P12-Feb-08 22:25
Chandrasekharan P12-Feb-08 22:25 
GeneralRe: stuck with progress bar Pin
Don Box12-Feb-08 23:11
Don Box12-Feb-08 23:11 
GeneralRe: stuck with progress bar Pin
David Crow13-Feb-08 2:51
David Crow13-Feb-08 2:51 
GeneralSubstring from a string Pin
CodingLover12-Feb-08 21:49
CodingLover12-Feb-08 21:49 
GeneralRe: Substring from a string [modified] Pin
Rajesh R Subramanian12-Feb-08 22:02
professionalRajesh R Subramanian12-Feb-08 22:02 
If you're using MFC, it'd be easily done with the CString::Mid() function:
CString str = _T("Name: Rajesh");
int iPos = str.Find(_T(":"),0);
AfxMessageBox(str.Mid(iPos+1));



Or, if you aren't using MFC, then perhaps this helps you:
TCHAR *tch = new TCHAR(20);
tch = _T("Name:Rajesh");

while(tch++)
{
    if(*tch == ':')
    {
        ::MessageBox(NULL, (tch+1), _T("Message"), MB_ICONINFORMATION);
        break;
    }
}delete tch;

Last modified: 15mins after originally posted --




Rajesh.

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.