Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: prime number with recursion Pin
toxcct26-Oct-05 0:08
toxcct26-Oct-05 0:08 
GeneralRe: prime number with recursion Pin
ThatsAlok26-Oct-05 23:54
ThatsAlok26-Oct-05 23:54 
GeneralRe: prime number with recursion Pin
Eytukan26-Oct-05 1:45
Eytukan26-Oct-05 1:45 
GeneralRe: prime number with recursion Pin
ThatsAlok26-Oct-05 23:44
ThatsAlok26-Oct-05 23:44 
AnswerRe: prime number with recursion Pin
sunit526-Oct-05 0:46
sunit526-Oct-05 0:46 
Questionwhats the best way to read ini files Pin
Chintoo72325-Oct-05 19:41
Chintoo72325-Oct-05 19:41 
AnswerRe: whats the best way to read ini files Pin
ThatsAlok26-Oct-05 0:55
ThatsAlok26-Oct-05 0:55 
AnswerRe: whats the best way to read ini files Pin
David Crow26-Oct-05 3:16
David Crow26-Oct-05 3:16 
Lambu Jindu wrote:
whats the best way to read ini files...


With GetPrivateProfileString() and GetPrivateProfileInt().

Lambu Jindu wrote:
Is this a good way to keep the configuration?


How often do you need the values? Do you want the values to be able to be changed while your program is running, or must your program be restarted?

Lambu Jindu wrote:
What is the way to enumerate the name/value pairs in a given section?


Using GetPrivateProfileSection().

Lambu Jindu wrote:
Does each call to GetPrivateProfile* parse the INI file again? Is this why they take the INI file name as a parameter?


Yes.


"Take only what you need and leave the land as you found it." - Native American Proverb


GeneralRe: whats the best way to read ini files Pin
John R. Shaw26-Oct-05 16:48
John R. Shaw26-Oct-05 16:48 
QuestionIntensity problem Pin
Arrun25-Oct-05 19:12
Arrun25-Oct-05 19:12 
AnswerRe: Intensity problem Pin
Christian Graus25-Oct-05 19:22
protectorChristian Graus25-Oct-05 19:22 
GeneralRe: Intensity problem Pin
Arrun25-Oct-05 19:48
Arrun25-Oct-05 19:48 
GeneralRe: Intensity problem Pin
Christian Graus25-Oct-05 20:06
protectorChristian Graus25-Oct-05 20:06 
GeneralRe: Intensity problem Pin
Arrun25-Oct-05 21:07
Arrun25-Oct-05 21:07 
GeneralRe: Intensity problem Pin
Christian Graus26-Oct-05 10:22
protectorChristian Graus26-Oct-05 10:22 
QuestionHow to add more document templates in MDI Pin
shivditya25-Oct-05 17:38
shivditya25-Oct-05 17:38 
AnswerRe: How to add more document templates in MDI Pin
shivditya25-Oct-05 19:11
shivditya25-Oct-05 19:11 
Generalhi shivditya Pin
vikas amin25-Oct-05 19:44
vikas amin25-Oct-05 19:44 
GeneralRe: hi shivditya Pin
shivditya25-Oct-05 19:55
shivditya25-Oct-05 19:55 
Questionmonolithic form classes (repost from "General Discussions") Pin
OlliesDad25-Oct-05 14:53
OlliesDad25-Oct-05 14:53 
AnswerRe: monolithic form classes (repost from "General Discussions") Pin
Christian Graus25-Oct-05 14:57
protectorChristian Graus25-Oct-05 14:57 
GeneralRe: monolithic form classes (repost from "General Discussions") Pin
OlliesDad25-Oct-05 19:29
OlliesDad25-Oct-05 19:29 
QuestionNew Help Needed Check previous post Pin
Tom Moore25-Oct-05 13:40
Tom Moore25-Oct-05 13:40 
AnswerRe: New Help Needed Check previous post Pin
Christian Graus25-Oct-05 14:05
protectorChristian Graus25-Oct-05 14:05 
Questionstident Pin
first090225-Oct-05 13:09
first090225-Oct-05 13:09 

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.