Click here to Skip to main content
15,891,375 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: [MDI] Updating only one MDI child frame Pin
Neville Franks7-Apr-03 11:29
Neville Franks7-Apr-03 11:29 
GeneralRe: [MDI] Updating only one MDI child frame Pin
djordj7-Apr-03 11:36
djordj7-Apr-03 11:36 
GeneralRe: [MDI] Updating only one MDI child frame Pin
jhwurmbach7-Apr-03 22:20
jhwurmbach7-Apr-03 22:20 
GeneralRe: Tell compiler where to find source for header file? Pin
Dave Bryant7-Apr-03 9:38
Dave Bryant7-Apr-03 9:38 
Generalstore data in arrays Pin
Kash7-Apr-03 6:10
Kash7-Apr-03 6:10 
GeneralRe: store data in arrays Pin
Big Art7-Apr-03 7:33
Big Art7-Apr-03 7:33 
GeneralRe: store data in arrays Pin
Kash7-Apr-03 8:47
Kash7-Apr-03 8:47 
GeneralRe: store data in arrays Pin
Big Art7-Apr-03 10:40
Big Art7-Apr-03 10:40 
CString sAllData(".01 6438. 41.74 8753. 1.3596159.07 ");
CString sCol_1[10];
CString sCol_2[10];
CString sCol_3[10];
CString sCol_4[10];
CString sCol_5[10];
CString sCol_6[10];
int iPos1= 0;
int iPos2= 0;

for(int i=0; i<10; i++)
{
iPos2 = sAllData.Find(" ",iPos1);
if(iPos2<0)break;
sCol_1[i] = sAllData.Mid(iPos1, iPos2 - 0); //.01


iPos1 = sAllData.Find(" ",iPos2+1);
if(iPos1<0)break;
sCol_2[i] = sAllData.Mid(iPos2+1, iPos1 - iPos2); //6438.


iPos2 = sAllData.Find(" ",iPos1+1);
if(iPos2<0)break;
sCol_3[i] = sAllData.Mid(iPos1+1, iPos2 - iPos1); //41.74


iPos1 = sAllData.Find(" ",iPos2+1);
if(iPos1<0)break;
sCol_4[i] = sAllData.Mid(iPos2+1, iPos1 - iPos2); //8753.1


iPos2 = sAllData.Find(".",iPos1+1);
if(iPos2<0)break;
int iPosCol5End = iPos2 + 4;
sCol_5[i] = sAllData.Mid(iPos1+1, iPosCol5End - iPos1); //1.3596


iPos1 = sAllData.Find(" ",iPosCol5End+1);
if(iPos1<0) break;
sCol_6[i] = sAllData.Mid(iPosCol5End+1, iPos1-iPosCol5End); //159.07


CString sRow;
sRow.Format("Row[%d] data:\n%s\n%s\n%s\n%s\n%s\n%s",i
,sCol_1[i]
,sCol_2[i]
,sCol_3[i]
,sCol_4[i]
,sCol_5[i]
,sCol_6[i]);
AfxMessageBox(sRow);


}

Art
GeneralRe: store data in arrays Pin
Joe Woodbury7-Apr-03 10:08
professionalJoe Woodbury7-Apr-03 10:08 
GeneralPrgramatically Press a CButton Pin
Jawache7-Apr-03 6:09
Jawache7-Apr-03 6:09 
GeneralRe: Prgramatically Press a CButton Pin
Ravi Bhavnani7-Apr-03 6:59
professionalRavi Bhavnani7-Apr-03 6:59 
GeneralRe: Prgramatically Press a CButton Pin
Big Art7-Apr-03 7:41
Big Art7-Apr-03 7:41 
GeneralWho can help me? I plan to use a hidden window to field keyboard inputs Pin
DengJW7-Apr-03 5:24
DengJW7-Apr-03 5:24 
Generalcapture Bitmap Pin
jeremysay7-Apr-03 4:49
jeremysay7-Apr-03 4:49 
GeneralRe: capture Bitmap Pin
J. Dunlap7-Apr-03 7:56
J. Dunlap7-Apr-03 7:56 
GeneralRe: capture Bitmap Pin
jeremysay7-Apr-03 21:02
jeremysay7-Apr-03 21:02 
GeneralRecordCount in Ado RecordSet Pin
Martin_Viet7-Apr-03 4:18
Martin_Viet7-Apr-03 4:18 
GeneralRe: RecordCount in Ado RecordSet Pin
Le centriste7-Apr-03 4:35
Le centriste7-Apr-03 4:35 
GeneralRe: RecordCount in Ado RecordSet Pin
Martin_Viet7-Apr-03 5:47
Martin_Viet7-Apr-03 5:47 
GeneralRe: RecordCount in Ado RecordSet Pin
Zdeslav Vojkovic7-Apr-03 5:00
Zdeslav Vojkovic7-Apr-03 5:00 
GeneralRe: RecordCount in Ado RecordSet Pin
J. Dunlap7-Apr-03 7:54
J. Dunlap7-Apr-03 7:54 
GeneralRe: loading a dll to the runtime... Pin
Cedric Moonen7-Apr-03 3:57
Cedric Moonen7-Apr-03 3:57 
GeneralRe: loading a dll to the runtime... Pin
Le centriste7-Apr-03 4:22
Le centriste7-Apr-03 4:22 
GeneralRe: loading a dll to the runtime... Pin
Le centriste7-Apr-03 4:37
Le centriste7-Apr-03 4:37 
GeneralRe: loading a dll to the runtime... Pin
Le centriste7-Apr-03 4:50
Le centriste7-Apr-03 4:50 

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.