Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Max size of an INI file using WINAPI?

Posted on 2000-02-29
3
Medium Priority
?
299 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
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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

963 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