Click here to Skip to main content
15,905,420 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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.
QuestionRe: Substring from a string Pin
CPallini12-Feb-08 22:34
mveCPallini12-Feb-08 22:34 
GeneralRe: Substring from a string Pin
Rajesh R Subramanian12-Feb-08 23:02
professionalRajesh R Subramanian12-Feb-08 23:02 
JokeRe: Substring from a string Pin
CPallini12-Feb-08 23:15
mveCPallini12-Feb-08 23:15 
GeneralRe: Substring from a string Pin
Rajesh R Subramanian12-Feb-08 23:22
professionalRajesh R Subramanian12-Feb-08 23:22 
GeneralRe: Substring from a string Pin
CPallini12-Feb-08 23:34
mveCPallini12-Feb-08 23:34 
GeneralRe: Substring from a string Pin
Don Box12-Feb-08 23:06
Don Box12-Feb-08 23:06 
GeneralRe: Substring from a string Pin
CodingLover13-Feb-08 0:28
CodingLover13-Feb-08 0:28 
GeneralRe: Substring from a string Pin
CodingLover13-Feb-08 0:17
CodingLover13-Feb-08 0:17 
GeneralFormated Input Pin
lgatcodeproject12-Feb-08 21:36
lgatcodeproject12-Feb-08 21:36 
GeneralRe: Formated Input Pin
Rajesh R Subramanian12-Feb-08 21:40
professionalRajesh R Subramanian12-Feb-08 21:40 
GeneralCButton Ugly border Pin
sarat12-Feb-08 21:04
sarat12-Feb-08 21:04 
GeneralRe: CButton Ugly border Pin
Iain Clarke, Warrior Programmer12-Feb-08 23:59
Iain Clarke, Warrior Programmer12-Feb-08 23:59 
QuestionRe: CButton Ugly border Pin
David Crow13-Feb-08 3:06
David Crow13-Feb-08 3:06 
GeneralRe: CButton Ugly border Pin
Iain Clarke, Warrior Programmer13-Feb-08 3:42
Iain Clarke, Warrior Programmer13-Feb-08 3:42 
GeneralWaitCommEvent() and new line Pin
rp_suman12-Feb-08 21:00
rp_suman12-Feb-08 21:00 
GeneralRe: WaitCommEvent() and new line Pin
Cedric Moonen12-Feb-08 21:05
Cedric Moonen12-Feb-08 21:05 
GeneralRe: WaitCommEvent() and new line Pin
rp_suman12-Feb-08 21:34
rp_suman12-Feb-08 21:34 

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.