GetProfStringList failure on Win98
Posted 21 June 2004 - 16:01
I encounter a strange problem with GetProfStringList (which is supposed to read an ini file). I'm compiling it on XP; it works on XP and on Win 2k, but it fails on Win 98.
My ini file looks like this:
... ans so on ...
LogFileWriteStr("LangCodeFile " + langcodefile);
LogFileWriteStr("Section " + section);
nResult = GetProfStringList (langcodefile, section, ListLangCodes, ListLangNames);
LogFileWriteStr("Languages in ini file: " + svResult);
LogFileWriteStr("GetProfStringList return value: " + svResult);
On XP my log is ok:
LangCodeFile H:\Matis\Disk Images\newer2\Language.Code
Languages in ini file: 34
On Win 98, it fails to read the same file from exactly the same package:
LangCodeFile H:\MATIS\DISK IMAGES\NEWER2\Language.Code
Languages in ini file: 0
GetProfStringList return value: -1
Does anybody have a clue why is this happening?
Thanks for any help you can provide.
Posted 21 June 2004 - 16:17
Is there such info in your help files?
Besides, the knowledge base says, there is a problem with GetProfStringList in Developer 7 with non-unique keys in the section:
Posted 22 June 2004 - 08:24
Thanks for your tips!
Unfortunately I found the same - very unprofessional - notice in my help files
'GetProfString uses the functions provided by your operating environment's API to access the .ini file. Therefore, InstallShield's functionality may be limited by the operating environment. '
My ini file basicaly contains one single section, with well-determined language codes in it... no duplications...
The strange thing is, that my collegue has successfully compiled the same code on Win XP, and he can run it on Win98 successfully. The same version of install shiled is installed for both of us, with the language packs and the patches.
I guess the misterious 'API' would answer these questions...
Posted 22 June 2004 - 08:50
Posted 22 June 2004 - 14:57