Click here to Skip to main content
15,910,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 6:14
suss7-May-01 6:14 
GeneralRe: Desparate for suggestions? ---- Some Toolbar Button Are Hidden Pin
7-May-01 10:37
suss7-May-01 10:37 
GeneralProblem with WriteFile and GetOverlappedResult Pin
fd97507-May-01 2:43
professionalfd97507-May-01 2:43 
General'for' statement can't work! Pin
hearties7-May-01 0:09
hearties7-May-01 0:09 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 0:46
professional#realJSOP7-May-01 0:46 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:11
hearties7-May-01 1:11 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:24
professional#realJSOP7-May-01 1:24 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 1:40
hearties7-May-01 1:40 
I want to parse a some text from a file. The format of the text goes something like this:

#BeginRegisterList
0= RegisterName A2 D2;
1= "Control Set";
2= Byte control &c5;
#EndRegisterList

I have converted the text from the file into a CString object, so that I can pass it into the StringParser functions.

I was able to use the modified StringParser class (I only changed the delimiter data type for "char" to "CString") to extract the lines between "#BeginRegisterList" and "#EndRegisterList" (I used these strings as the delimiter), leaving behind the following lines:

0= RegisterName A2 D1
1= "Control Set"
2= Byte control &c5
bit control

my problem arose at the point whereby I use a 'for' loop to extract the various parameters to be stored in the document:

RagisterName
2
1
Control Set
Byte Control
c5
bit control

the 'for' loop is to change the delimiter from "0=", "1=", ... "9=".

I hope the explanation is clear. I downloaded your code last week. will download the latest version now.

Frown | :(
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 1:50
professional#realJSOP7-May-01 1:50 
GeneralRe: 'for' statement can't work! Pin
hearties7-May-01 2:16
hearties7-May-01 2:16 
GeneralRe: 'for' statement can't work! Pin
#realJSOP7-May-01 2:50
professional#realJSOP7-May-01 2:50 
GeneralRe: 'for' statement can't work! Pin
hearties9-May-01 5:55
hearties9-May-01 5:55 
GeneralRe: 'for' statement can't work! Pin
Wojciech Zaremba7-May-01 2:42
Wojciech Zaremba7-May-01 2:42 
Question[q] How to control the other program's scrollbar? Pin
linugee6-May-01 22:44
linugee6-May-01 22:44 
AnswerRe: [q] How to control the other program's scrollbar? Pin
Christian Graus6-May-01 23:49
protectorChristian Graus6-May-01 23:49 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Hadi Rezaee7-May-01 2:52
Hadi Rezaee7-May-01 2:52 
GeneralRe: [q] How to control the other program's scrollbar? Pin
Christian Graus7-May-01 12:38
protectorChristian Graus7-May-01 12:38 
Generalpl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 21:02
suss6-May-01 21:02 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n6-May-01 21:10
l a u r e n6-May-01 21:10 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
6-May-01 22:59
suss6-May-01 22:59 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n7-May-01 5:40
l a u r e n7-May-01 5:40 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 2:55
professional#realJSOP7-May-01 2:55 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
l a u r e n7-May-01 5:36
l a u r e n7-May-01 5:36 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
#realJSOP7-May-01 6:02
professional#realJSOP7-May-01 6:02 
GeneralRe: pl help me! Struggling for days. Problem with ADOs & Binary data insertion Pin
Ajit Jadhav7-May-01 7:10
Ajit Jadhav7-May-01 7:10 

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.