Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can extract a Return Value from a Stored Procedure with ADO Pin
Carlos Antollini15-May-02 5:48
Carlos Antollini15-May-02 5:48 
GeneralRe: How can extract a Return Value from a Stored Procedure with ADO Pin
Jon Hulatt15-May-02 5:46
Jon Hulatt15-May-02 5:46 
GeneralThreads and server side applications Pin
unknown soldier14-May-02 23:44
unknown soldier14-May-02 23:44 
GeneralRe: Threads and server side applications Pin
Nish Nishant14-May-02 23:55
sitebuilderNish Nishant14-May-02 23:55 
GeneralRe: Threads and server side applications Pin
unknown soldier15-May-02 0:01
unknown soldier15-May-02 0:01 
GeneralMulti-language Pin
14-May-02 23:43
suss14-May-02 23:43 
GeneralRe: Multi-language Pin
Christian Graus15-May-02 3:03
protectorChristian Graus15-May-02 3:03 
GeneralRe: Multi-language Pin
Paul M Watt15-May-02 8:27
mentorPaul M Watt15-May-02 8:27 
If you are asking what the INI functions are, here you go:

GetPrivateProfileString
GetPrivateProfileInt
GetPrivateProfileSection
GetPrivateProfileSections
GetPrivateProfileStruct

as well as the WritePrivateProfileXXX versions of all of these functions.

I would not reccomend trying to parse these files yourself as the API functions provide quite a bit of error checking and handling for you.

If you are wondering how to use this data in your program, I would create a set of global variables that have IDS associated with them, and the IDS will have the corresponding string in the ini file.

I would recommend that you look into string tables and create a resource only DLL in order to hold these Multi-language strings. You can create a string table with multiple LCID or locale IDS, that are associated with different langauges. Then you would create all of the string entries in this table, and you would only be responsible for selecting the correct LCID. When you load the string from the table it will get the correct one for you.

This also solves the problem from managing the different number of ini files, and prevents users from messing around and being able to edit these files.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Multi-language Pin
15-May-02 22:57
suss15-May-02 22:57 
GeneralHelp................................ Pin
johny quest14-May-02 23:26
johny quest14-May-02 23:26 
GeneralRe: Help................................ Pin
Jon Hulatt15-May-02 0:12
Jon Hulatt15-May-02 0:12 
GeneralReadFile function Pin
14-May-02 22:54
suss14-May-02 22:54 
GeneralRe: ReadFile function Pin
Niklas L14-May-02 23:24
Niklas L14-May-02 23:24 
GeneralMultiThreaded Progress bar Pin
SamirSood14-May-02 22:36
SamirSood14-May-02 22:36 
GeneralRe: MultiThreaded Progress bar Pin
Jon Hulatt14-May-02 23:57
Jon Hulatt14-May-02 23:57 
GeneralRe: MultiThreaded Progress bar Pin
SamirSood15-May-02 0:14
SamirSood15-May-02 0:14 
GeneralRe: MultiThreaded Progress bar Pin
Todd Smith15-May-02 7:31
Todd Smith15-May-02 7:31 
Generalcode for MultiThreaded Progress bar Pin
Hesham Amin15-May-02 0:45
Hesham Amin15-May-02 0:45 
GeneralRe: code for MultiThreaded Progress bar Pin
Stephen C. Steel16-May-02 11:59
Stephen C. Steel16-May-02 11:59 
QuestionWriting a driver? Pin
karanba14-May-02 22:21
karanba14-May-02 22:21 
AnswerRe: Writing a driver? Pin
Jon Hulatt14-May-02 23:58
Jon Hulatt14-May-02 23:58 
Generalincloming socket address Pin
Kristian3314-May-02 22:09
Kristian3314-May-02 22:09 
GeneralRe: incloming socket address Pin
Rickard Andersson2014-May-02 22:20
Rickard Andersson2014-May-02 22:20 
GeneralRe: incloming socket address Pin
Nish Nishant14-May-02 22:21
sitebuilderNish Nishant14-May-02 22:21 
GeneralRe: incloming socket address Pin
markkuk14-May-02 22:21
markkuk14-May-02 22:21 

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.