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. Get the keys present in the section of an ini file...

Get the keys present in the section of an ini file...

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

    Hi, May i know how can i get all the key names and values for a section in an ini file....

    P I 3 Replies Last reply
    0
    • S siva455

      Hi, May i know how can i get all the key names and values for a section in an ini file....

      P Offline
      P Offline
      Paresh Chitte
      wrote on last edited by
      #2

      Is this helpful GetPrivateProfileSectionNames ? Regards, Paresh.

      1 Reply Last reply
      0
      • S siva455

        Hi, May i know how can i get all the key names and values for a section in an ini file....

        I Offline
        I Offline
        Iain Clarke Warrior Programmer
        wrote on last edited by
        #3

        pradeep455 wrote:

        May i know how can i get all the key names and values for a section in an ini file....

        I didn't think you could... But I know the function to read from this is GetPrivateProfileString / Int, so while looking for that function in msn, I stumble across:

        MSDN wrote:

        The GetPrivateProfileSection function retrieves all the keys and values for the specified section of an initialization file.

        Also, GetPrivateProfileSectionNames. I hope that helps! Iain.

        Codeproject MVP for C++, I can't believe it's for my lounge posts...

        1 Reply Last reply
        0
        • S siva455

          Hi, May i know how can i get all the key names and values for a section in an ini file....

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          I've just noticed you posted the same question four hours before. You really should have more patience! People volunteer to answer these questions. Asking the same one again in a short time is not helpful to you... Iain.

          Codeproject MVP for C++, I can't believe it's for my lounge posts...

          S 1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            I've just noticed you posted the same question four hours before. You really should have more patience! People volunteer to answer these questions. Asking the same one again in a short time is not helpful to you... Iain.

            Codeproject MVP for C++, I can't believe it's for my lounge posts...

            S Offline
            S Offline
            siva455
            wrote on last edited by
            #5

            Sorry for posting again i did"nt got reply for my previous post so i have posted it again anyway ill not repeat this.... thanks...

            I 1 Reply Last reply
            0
            • S siva455

              Sorry for posting again i did"nt got reply for my previous post so i have posted it again anyway ill not repeat this.... thanks...

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              It was only 4 hours! Give us a chance to sleep / eat / do the jobs that actually pay us... Don't beat yourself up - you're not alone... Iain.

              Codeproject MVP for C++, I can't believe it's for my lounge posts...

              H 1 Reply Last reply
              0
              • I Iain Clarke Warrior Programmer

                It was only 4 hours! Give us a chance to sleep / eat / do the jobs that actually pay us... Don't beat yourself up - you're not alone... Iain.

                Codeproject MVP for C++, I can't believe it's for my lounge posts...

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

                You do these works at 4 hours! it seems you are faster than a computer. :-D

                Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

                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