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. buttons and config file for MFC

buttons and config file for MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
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.
  • C Offline
    C Offline
    catngo
    wrote on last edited by
    #1

    Is there a way to set the dialog program so that when it run, it read input file (config, ini, txt, data, mdb...). And let say that the file containt an int. if it is 1, the screen will show 1 button, if 2, 2 button and so forth. Also same for string, can the program take in a string and put it up on screen as button label? thank you!

    G 1 Reply Last reply
    0
    • C catngo

      Is there a way to set the dialog program so that when it run, it read input file (config, ini, txt, data, mdb...). And let say that the file containt an int. if it is 1, the screen will show 1 button, if 2, 2 button and so forth. Also same for string, can the program take in a string and put it up on screen as button label? thank you!

      G Offline
      G Offline
      gUrM33T
      wrote on last edited by
      #2

      You can use INI files or registry to store your settings. Read them on application initialization and apply the settings as per your application's needs. Both INI and registry supports integers and strings. Gurmeet S. Kochar


      If you believe in God, it's because of the Devil

      My CodeProject Articles: HTML Reader C++ Class Library, Numeric Edit Control

      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