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

C / C++ / MFC

 
QuestionLoad the flexible .ini o txt files Pin
johnjitu19-Nov-09 21:05
johnjitu19-Nov-09 21:05 
AnswerRe: Load the flexible .ini o txt files Pin
KarstenK19-Nov-09 21:54
mveKarstenK19-Nov-09 21:54 
GeneralRe: Load the flexible .ini o txt files Pin
johnjitu19-Nov-09 22:23
johnjitu19-Nov-09 22:23 
GeneralRe: Load the flexible .ini o txt files Pin
KarstenK19-Nov-09 22:36
mveKarstenK19-Nov-09 22:36 
GeneralRe: Load the flexible .ini o txt files Pin
johnjitu19-Nov-09 23:02
johnjitu19-Nov-09 23:02 
GeneralRe: Load the flexible .ini o txt files Pin
KarstenK19-Nov-09 23:20
mveKarstenK19-Nov-09 23:20 
GeneralRe: Load the flexible .ini o txt files Pin
johnjitu20-Nov-09 0:07
johnjitu20-Nov-09 0:07 
QuestionRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:31
David Crow20-Nov-09 3:31 
While you can use GetPrivateProfileString() to read INI files, it won't do much good when a given section has non-unique keys. Consider the following:

char szBuffer[64];
GetPrivateProfileString("T_FREC", "ID", "", szBuffer, sizeof(szBuffer), "myfile.ini");
Would you expect this to read the "ID" key whose value was 1 or 2?

"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons


AnswerRe: Load the flexible .ini o txt files Pin
johnjitu22-Nov-09 21:40
johnjitu22-Nov-09 21:40 
GeneralRe: Load the flexible .ini o txt files Pin
David Crow30-Nov-09 3:32
David Crow30-Nov-09 3:32 
QuestionRe: Load the flexible .ini o txt files Pin
CPallini19-Nov-09 22:15
mveCPallini19-Nov-09 22:15 
AnswerRe: Load the flexible .ini o txt files Pin
johnjitu19-Nov-09 22:21
johnjitu19-Nov-09 22:21 
GeneralRe: Load the flexible .ini o txt files Pin
CPallini19-Nov-09 22:44
mveCPallini19-Nov-09 22:44 
GeneralRe: Load the flexible .ini o txt files Pin
johnjitu19-Nov-09 23:04
johnjitu19-Nov-09 23:04 
GeneralRe: Load the flexible .ini o txt files Pin
Cedric Moonen19-Nov-09 23:14
Cedric Moonen19-Nov-09 23:14 
GeneralRe: Load the flexible .ini o txt files Pin
CPallini19-Nov-09 23:51
mveCPallini19-Nov-09 23:51 
QuestionRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:26
David Crow20-Nov-09 3:26 
GeneralRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:25
David Crow20-Nov-09 3:25 
AnswerRe: Load the flexible .ini o txt files Pin
Richard MacCutchan20-Nov-09 2:11
mveRichard MacCutchan20-Nov-09 2:11 
QuestionRe: Load the flexible .ini o txt files Pin
David Crow20-Nov-09 3:34
David Crow20-Nov-09 3:34 
Question::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan19-Nov-09 20:23
sirryan19-Nov-09 20:23 
QuestionRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
CPallini19-Nov-09 20:32
mveCPallini19-Nov-09 20:32 
AnswerRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
sirryan19-Nov-09 21:36
sirryan19-Nov-09 21:36 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
CPallini19-Nov-09 21:52
mveCPallini19-Nov-09 21:52 
GeneralRe: ::EmptyClipboard gives an error 1418 - Thread does not have a clipboard open. Pin
David Crow20-Nov-09 3:39
David Crow20-Nov-09 3:39 

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.