Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Max size of an INI file using WINAPI?

Posted on 2000-02-29
3
Medium Priority
?
295 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 300 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 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