What I poted has nothing whatsoever to do with the Registry.
quote:Actually I am a newbie to use this .ini file and windows registry, so can you teach me how to specify a location for it?
Because the book which I read it just teach me how to create it without specify a location for it.
But this is unclear. When you say â...location for it,â you have just used 2 nouns. That which âitâ refers to could be either the Registry or an ini file. But the location of the Registry is a meaningless concept, and you have not specified what
ini file you might be looking for. You can put an ini file anywhere you like... there fore the following
quote:May I know that if I did not set location of the .ini file, then by default it will be store at where?
is unanswerable. It is like saying "If I don't specify the location of a .txt, where would it be by default?"
What does, âMay I know what codes I learn from the book?â mean? It is as if you are asking me, "Please tell me what I know."
You say, "Could you tell the answer,please?" The answer to what?
GetSetting does not have anything whatsoever to do with ini files. It gets a value out of the Registry, which is not an ini file.
Could you please read your posts before posting them to see if they say what you mean?
Remove politeness items like "please" "may I" "waiting for . . ." "thank you" salutations ("Hi", etc.), don't explain that you are a newbie, "Please teach me", and so on.
I already know that you want to know the answer to what you are asking just because you asked. Being polite like this makes it harder for you to assemble your post, and makes them harder to read. (Don't apologize.)
Just post exactly what you want to know, or what you are trynig to do ("How do I read a value from the Registry?" "How do I get a value out of a .INI file?", etc.). that will be easier for everyone.
I do not have the book you have, whattever it is. The people answering here do not work for WROX. We are just people around the world who use this site, and contribute when we can.