Does anyone know how to write to an INI file even when its over 64kb, is there a function in the API to do this?
Im current using WritePrivateProfileString and
GetPrivateProfileString
Is that anyway this can be done?
This is a discussion on INI 64kb limit within the Windows Programming forums, part of the Platform Specific Boards category; Does anyone know how to write to an INI file even when its over 64kb, is there a function in ...
Does anyone know how to write to an INI file even when its over 64kb, is there a function in the API to do this?
Im current using WritePrivateProfileString and
GetPrivateProfileString
Is that anyway this can be done?
From msdn (WritePrivateProfileString/GetPrivateProfileString):
"This function is provided for compatibility with 16-bit Windows-based applications. WIn32-based applications should store initialization information in the registry. "
An INI file is a text file. There should be no limit to its size other than dictated by available memory.
You aren't doing this within an edit control are you? The reason I ask is that the upper limit for an edit control is 64kb. A rich edit control can be made 'bottomless'.
If you still want to write an ini file then perhaps you should consider dumping WritePrivateProfileString/GetPrivateProfileString in favour of your own DIY read/write file procedure.