Thread: INI 64kb limit

  1. #1

    INI 64kb limit

    Does anyone know how to write to an INI file even when its over 64kb, is there a function in the API to do this?

    Im current using WritePrivateProfileString and

    Is that anyway this can be done?

  2. #2
    Join Date
    Jan 2002
    From msdn (WritePrivateProfileString/GetPrivateProfileString):

    "This function is provided for compatibility with 16-bit Windows-based applications. WIn32-based applications should store initialization information in the registry. "

    An INI file is a text file. There should be no limit to its size other than dictated by available memory.

    You aren't doing this within an edit control are you? The reason I ask is that the upper limit for an edit control is 64kb. A rich edit control can be made 'bottomless'.

    If you still want to write an ini file then perhaps you should consider dumping WritePrivateProfileString/GetPrivateProfileString in favour of your own DIY read/write file procedure.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compute without Limit - support for fractions and 2G Digits!
    By etlam in forum Projects and Job Recruitment
    Replies: 14
    Last Post: 02-07-2008, 12:46 PM
  2. socket limit
    By l2u in forum Networking/Device Communication
    Replies: 2
    Last Post: 05-17-2006, 07:18 PM
  3. Replies: 3
    Last Post: 01-08-2004, 09:43 PM
  4. Heap limit error???
    By sunburnbyRA in forum C++ Programming
    Replies: 6
    Last Post: 04-10-2003, 03:12 PM
  5. hi need help with credit limit program
    By vaio256 in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2003, 12:23 AM