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. Registry Vs Ini

Registry Vs Ini

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiowindows-adminquestion
4 Posts 4 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.
  • A Offline
    A Offline
    anna mathew
    wrote on last edited by
    #1

    I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?

    H CPalliniC R 3 Replies Last reply
    0
    • A anna mathew

      I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      It depends to you if you want to ask again and again(like ini files) its difficult but if you want to learn it yourself no its easy.

      1 Reply Last reply
      0
      • A anna mathew

        I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Again, as I said to you, many, many, many, many, many times, the registry shouldn't be polluted with such kind of info. That said, if you really, badly, want to do that, it is not difficult, really. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • A anna mathew

          I have an MFC application that reads/writes the address and phone nos of employees of a company to INI file... YOU have only FEW LINES OF CODE FOR THIS... You need to use only GetPrivateProfileString() and WritePrivateProfileString().... What IF I USE REGISTRY TO STORE THIS??? ............WILL IT BE DIFFICULT?

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          You use the registry to store application related information in it (application settings, usually). An INI file should be OK-ish, but then you would be better of using a database if you expect the data to grow over the time.

          It is a crappy thing, but it's life -^ Carlo Pallini

          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