Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Access array data Pin
«_Superman_»24-Feb-09 17:56
professional«_Superman_»24-Feb-09 17:56 
GeneralRe: Access array data Pin
necy3625-Feb-09 5:27
necy3625-Feb-09 5:27 
GeneralRe: Access array data Pin
Larry J. Siddens25-Feb-09 9:17
Larry J. Siddens25-Feb-09 9:17 
GeneralRe: Access array data Pin
«_Superman_»25-Feb-09 17:45
professional«_Superman_»25-Feb-09 17:45 
Question2005 sql server returns 'Invalid character value for cast specification' Pin
chenggong24-Feb-09 9:02
chenggong24-Feb-09 9:02 
AnswerRe: 2005 sql server returns 'Invalid character value for cast specification' Pin
Mukkie24-Feb-09 21:04
Mukkie24-Feb-09 21:04 
GeneralRe: 2005 sql server returns 'Invalid character value for cast specification' Pin
chenggong26-Feb-09 9:38
chenggong26-Feb-09 9:38 
QuestionWorking with .INI files - parsing Pin
john john mackey24-Feb-09 8:24
john john mackey24-Feb-09 8:24 
Hi,

I am sort of familiar with the functions:
GetPrivateProfileString()
WritePrivateProfileString()

used with parsing a .INI file.

What I want to do is get/set the Section names within a .INI file.

For example, if I had the .INI file

[c:\root\database\images\country.dat]
value1=1
value2=1024
value3=500
[FILENAMES]
0=c:\imagery\color\map1.jpg
1=c:\imagery\topology\elevation.dat
[c:\imagery\color\map1.jpg]
MapValue1=1
MapValue2=255:255:255
[c:\imagery\topology\elevation.dat]
TopologyData1=0
TopologyData2=1000


How can I dynamically access the Section names, within the brackets [ ], when I don't know what they could contain? AND can I change these (like re-path) and then update the .INI file?

Thank you.
AnswerRe: Working with .INI files - parsing Pin
Stuart Dootson24-Feb-09 8:38
professionalStuart Dootson24-Feb-09 8:38 
GeneralRe: Working with .INI files - parsing Pin
john john mackey25-Feb-09 6:20
john john mackey25-Feb-09 6:20 
AnswerRe: Working with .INI files - parsing Pin
David Crow24-Feb-09 9:11
David Crow24-Feb-09 9:11 
GeneralAttempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 8:14
Brady Kelly24-Feb-09 8:14 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Stuart Dootson24-Feb-09 8:31
professionalStuart Dootson24-Feb-09 8:31 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 8:58
Brady Kelly24-Feb-09 8:58 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Stuart Dootson24-Feb-09 9:12
professionalStuart Dootson24-Feb-09 9:12 
GeneralRe: Attempted to read or write protected memory when calling DLL Pin
Brady Kelly24-Feb-09 9:17
Brady Kelly24-Feb-09 9:17 
QuestionHow to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 7:56
mrby12324-Feb-09 7:56 
AnswerRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:03
Code-o-mat24-Feb-09 8:03 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 8:15
mrby12324-Feb-09 8:15 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:35
Code-o-mat24-Feb-09 8:35 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 8:38
mrby12324-Feb-09 8:38 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
Code-o-mat24-Feb-09 8:53
Code-o-mat24-Feb-09 8:53 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
mrby12324-Feb-09 9:25
mrby12324-Feb-09 9:25 
AnswerRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
David Crow24-Feb-09 9:12
David Crow24-Feb-09 9:12 
GeneralRe: How to parse a CString: 1,1,E1,0.13060,-0.40193,-0.90631 - Parsing Comma Delimted Strings Pin
ky_rerun24-Feb-09 9:48
ky_rerun24-Feb-09 9:48 

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.