Solved

Max size of an INI file using WINAPI?

Posted on 2000-02-29
3
291 Views
Last Modified: 2013-12-03
I am reading ini files using the GetPrivateProfileString function.  It seems I can only access part of the INI file (it is currently 141K).  Is there a maz size that is read into a buffer for 32B APIs?  Any other suggestions for reading a file of this size?

Thanks,
Allison
0
Comment
Question by:ambunn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:ambunn
ID: 2569110
Adjusted points to 75
0
 
LVL 1

Accepted Solution

by:
prozak earned 75 total points
ID: 2569769
Under Windows95 (and probably 98 as well, I'm haven't tested that), the maximum size an INI file can be is 32KB. Under NT it can be any size. The only two options you have is to write some custom INI file parsing functions and the other would be to break up the INI file into several smaller files.

We had the same problem on a project I was on and what we ended up doing was having a master INI file that told the program what the other files were it needed to process. Then we broke it up into <32KB chunks (one section at a time) into individual files.

While this approach is somewhat of a kludge, it was certainly more time saving than writing INI parsing routines.
0
 

Author Comment

by:ambunn
ID: 2569812
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question