ey,
can someone confirm. wince has no GetPrivateProfileString for .ini files. does this mean i have to use the registry?
i try to avoid the registry. how do you guys, handle application settings?
thx,
marvin
I don't know why you don't want to use registry? It was made for that. Anyway, for your question, I'm not 100% sure, but I think this function is still in a dll on the winCE system. just try to find it doing dumpbin on the lib. After you found it, you will have the function signature. Maybe someone else will know the exact name of the lib.
Doesn't appear to be in the WinCE API.
Can you save settings to a config file?
I tend not to use the registry because it often leaves entries in there after the uninstall, unless you need to (for shareware/demo's) stop the user from reinstalling to get the trial back.
At least if you don't use the registry, the program can be deleted and be gone comlpetely!
i avoid the registry with the same reason as gamefreak. and i also need to the config files (theme files actually) to be easily edited by users.
my theme file has this format:
[toolbar]
button.color=cc0000
button.textColor=c0c0c0
[menu]
...
this was easily parsed by a getprivateprofilestring by providing a section and a key. guess i'll have to code another class and do it myself
gamefreaks: if you know how to use registry, when you uninstall, there is suppose to be nothing left in the registry.
Look on internet, there is a lot of source code that do the ini parsing. Anyway, it's really easy to code :)