Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Suggestions Needed: Populating ListView

Suggestions Needed: Populating ListView

Scheduled Pinned Locked Moved C / C++ / MFC
databasewindows-adminhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Frank Deo
    wrote on last edited by
    #1

    Hello all, My App needs to load a a list of configurations into a list view at load time. The list will then be user modifiable (add, delete, edit). What would you all consider to be the best way to do this. An INI file storing each configuration and stored in a folder under the working folder, and loaded at runtime? Or, doing the same thing in the registry. And, how would you keep track of the items so that the correct number are re-loaded back at runtime. For example: At startup the list contains 4 items. Item0, Item1, Item2, and Item3. The user deletes Item2. Now there is no real index to keep track of, I can see there are 3 files, but loading them in any logical progression is no longer an option. Thanks for any suggestions you may have. Frank "Keyboard Error - Press F1 to Continue"

    V 1 Reply Last reply
    0
    • F Frank Deo

      Hello all, My App needs to load a a list of configurations into a list view at load time. The list will then be user modifiable (add, delete, edit). What would you all consider to be the best way to do this. An INI file storing each configuration and stored in a folder under the working folder, and loaded at runtime? Or, doing the same thing in the registry. And, how would you keep track of the items so that the correct number are re-loaded back at runtime. For example: At startup the list contains 4 items. Item0, Item1, Item2, and Item3. The user deletes Item2. Now there is no real index to keep track of, I can see there are 3 files, but loading them in any logical progression is no longer an option. Thanks for any suggestions you may have. Frank "Keyboard Error - Press F1 to Continue"

      V Offline
      V Offline
      valikac
      wrote on last edited by
      #2

      What is the maximum size of the list of configurations? If it is relatively small, one solution is registry. Otherwise, one solution is to save the configurations on disk. Kuphryn

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups