Solved

Max size of an INI file using WINAPI?

Posted on 2000-02-29
3
287 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 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA Import all database objects 12 50
SQL to ElasticSearch Query 1 635
Microsoft Query from QuickBooks 9 66
Need example 5 113
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

806 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