0

Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)?

Thanks! :)

3
Contributors
7
Replies
8
Views
9 Years
Discussion Span
Last Post by jaepi
0

These are Windows specific functionis related to INI files which are Windows Configuration files, so there couldn't be any standard function.

0

you can write your own functions to replace them. ini configuration files are nothing more than simple text files that are in the format

[tag name]
<field> = <value>

So the program you write just searches for the tag name then the field and value.

0

since you have the source code you can change it however you want. But ini files themselves are not usually UNICODE so you might have to add a little code to convert from wchar_t* to char*, assuming that is even possible, which it might not be with some languages.

0

Uhmmm. What if I will use wcstombs() function to convert wide char to multibyte? Could it be possible?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.