how to write and save ini files like some apps do with their ini's

This is a discussion on how to write and save ini files like some apps do with their ini's within the Windows Programming forums, part of the Platform Specific Boards category; Im working on app that will keep lists of things in a ini file from edit boxes on a dialogs. ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    13

    Question how to write and save ini files like some apps do with their ini's

    Im working on app that will keep lists of things in a ini file from edit boxes on a dialogs.

    I already know about CEdit and WritePrivateProfileStrings things.
    but I need things to be listed like this. also I will add ability to delete.

    mIRC does this same way with the servers.ini and alias.ini


    [thing]
    n0=here
    n1=food
    n2=metal
    n3=hotdogs
    n4=metals
    n5=pencils
    n6=pens
    n7=paint

    for your info. Im using MFC to make my program in Visual C++ 6.0.
    Mouse

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Posts
    219
    Then remove the call to SetRegistryKey() in you main App InitInstance() function. Then the writes and reads to the registry will happen in an ini file instead.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to write save code?
    By sept in forum C++ Programming
    Replies: 6
    Last Post: 09-18-2007, 08:25 AM
  2. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 04:30 PM
  3. Still can not write or read from save file
    By WackoWolf in forum C++ Programming
    Replies: 37
    Last Post: 11-14-2004, 07:28 PM
  4. Still can not write or read from save file
    By WackoWolf in forum C++ Programming
    Replies: 2
    Last Post: 11-14-2004, 01:21 AM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21