Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ATL (BSTR) to VB Pin
Dan Madden11-Jul-01 10:17
Dan Madden11-Jul-01 10:17 
GeneralCapturing DOS output Pin
11-Jul-01 9:09
suss11-Jul-01 9:09 
GeneralRe: Capturing DOS output Pin
Ben Burnett11-Jul-01 10:19
Ben Burnett11-Jul-01 10:19 
GeneralRegistering file types that aren't doc/view types Pin
11-Jul-01 7:53
suss11-Jul-01 7:53 
GeneralWindows 2000 using WTL Pin
Lilian Chan-Grant11-Jul-01 6:58
Lilian Chan-Grant11-Jul-01 6:58 
GeneralRe: Windows 2000 using WTL Pin
Michael Dunn11-Jul-01 7:20
sitebuilderMichael Dunn11-Jul-01 7:20 
GeneralRe: Windows 2000 using WTL Pin
Lilian Chan-Grant11-Jul-01 8:15
Lilian Chan-Grant11-Jul-01 8:15 
GeneralCString parsing Pin
RobJones11-Jul-01 6:42
RobJones11-Jul-01 6:42 
I'm sure glad this fourm exists.. Smile | :)

Im trying to parse a string for "11" and put the value into a int.. here what I have so far..
CString strPDT;
strPDT = "<p>At the tone, the time will be... < b>Wednesday, Jul 11, 2001 07:57:09 PDT< /b>";

int nIndex, nFirstIndex, nSecondIndex;
nIndex = strPDT.Find(_T("tone"));
nFirstIndex = strPDT.Find("< b>", nMyIndex);
nSecondIndex = strPDT.Find(",", nFirstIndex+1); // I would like to find the 3rd "," -- how?
strPDTDays = strPDT.Mid(nFirstIndex+1, nSecondIndex-FirstIndexPDT-1);
int iPDTDays = atoi(strPDTDays);
int iPDTD = iPDTDays;


I know this code isn't correct but it gives you a idea of what I'm trying to do... can someone post some code that would find "11".

Thanks again,


Rob Jones
GeneralRe: CString parsing Pin
Carlos Antollini11-Jul-01 6:57
Carlos Antollini11-Jul-01 6:57 
GeneralRe: CString parsing Pin
RobJones11-Jul-01 7:04
RobJones11-Jul-01 7:04 
GeneralRe: CString parsing Pin
Carlos Antollini11-Jul-01 7:16
Carlos Antollini11-Jul-01 7:16 
GeneralRe: CString parsing Pin
RobJones11-Jul-01 7:26
RobJones11-Jul-01 7:26 
GeneralRe: CString parsing Pin
#realJSOP12-Jul-01 3:05
professional#realJSOP12-Jul-01 3:05 
GeneralDundas Ultimate Diagram Pin
Jim Weiss11-Jul-01 6:26
Jim Weiss11-Jul-01 6:26 
GeneralCompile Error, Help!!! Pin
Nick Armstrong11-Jul-01 5:11
Nick Armstrong11-Jul-01 5:11 
GeneralATL Pin
KingsGambit11-Jul-01 5:11
KingsGambit11-Jul-01 5:11 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
11-Jul-01 5:51
suss11-Jul-01 5:51 
GeneralRe: ATL Pin
KingsGambit11-Jul-01 18:03
KingsGambit11-Jul-01 18:03 
GeneralIHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
Oguzhan ERKAN11-Jul-01 4:53
Oguzhan ERKAN11-Jul-01 4:53 
GeneralRe: IHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
11-Jul-01 8:29
suss11-Jul-01 8:29 
GeneralRe: IHTMLElement and IHTMLElement2 and IHTMLWindow2 Pin
Oguzhan ERKAN11-Jul-01 20:49
Oguzhan ERKAN11-Jul-01 20:49 
GeneralCFileFind question (Idiot) Pin
Michael Martin11-Jul-01 4:46
professionalMichael Martin11-Jul-01 4:46 
GeneralRe: CFileFind question (Idiot) Pin
11-Jul-01 5:24
suss11-Jul-01 5:24 

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.