Solved

Max size of an INI file using WINAPI?

Posted on 2000-02-29
3
282 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
  • 2
3 Comments
 

Author Comment

by:ambunn
Comment Utility
Adjusted points to 75
0
 
LVL 1

Accepted Solution

by:
prozak earned 75 total points
Comment Utility
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
Comment Utility
Thanks!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

744 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now