parser
-
I have an INI file that contains following: [CONG] COL1;COL2;COL3;COL4 COL11;COL22:COL33;COL44 COL111;COL222;COL333;COL444 How can I read and populate a combobox or listbox as follows: COL1 COL11 COL111 then when I select an item (COL1 for example) from the list, it will read the forth item in the INI COL4 Any guidelines, direction or sample code will be greatly appreciated
-
I have an INI file that contains following: [CONG] COL1;COL2;COL3;COL4 COL11;COL22:COL33;COL44 COL111;COL222;COL333;COL444 How can I read and populate a combobox or listbox as follows: COL1 COL11 COL111 then when I select an item (COL1 for example) from the list, it will read the forth item in the INI COL4 Any guidelines, direction or sample code will be greatly appreciated
-
I have an INI file that contains following: [CONG] COL1;COL2;COL3;COL4 COL11;COL22:COL33;COL44 COL111;COL222;COL333;COL444 How can I read and populate a combobox or listbox as follows: COL1 COL11 COL111 then when I select an item (COL1 for example) from the list, it will read the forth item in the INI COL4 Any guidelines, direction or sample code will be greatly appreciated
-
just tokenize it by using strtok, bear in mind however there are some issues on strtok. (check the MSDN) Sonork 100.41263:Anthony_Yio
-
Why do you use .Ini file? get the value into CString; Find where are the ';', with CString.Find(";",0); Get the string with CString.Mid
Work hard and a bit of luck is the key to success.
:)
use the fgets() function to read each complete line into an array of char (or CString or whatever you use), then just trawl through it until you find a ';' character and set it to 0 or '\0'. Once you've done that add it the combo box and read in the next line... "When I left you I was but the learner, now I am the master" - Darth Vader