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. .ini path

.ini path

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

    Anyone know how retrieve the path of an .ini file of an application? GetProfileString retrieve only the ini file name, I would the path! Grazie!:confused:

    F C 2 Replies Last reply
    0
    • X XAlien

      Anyone know how retrieve the path of an .ini file of an application? GetProfileString retrieve only the ini file name, I would the path! Grazie!:confused:

      F Offline
      F Offline
      Fredrik Skog
      wrote on last edited by
      #2

      I think you got it mixed up, GetProfileString retrieves information from Win.ini. I suggest you read about the registry and initialization files in MSDN. There is code at CodeProject under General\System\Registry\. Cheers,
      /Fredrik

      Sonork ID: 100.11430:PhatBoy

      1 Reply Last reply
      0
      • X XAlien

        Anyone know how retrieve the path of an .ini file of an application? GetProfileString retrieve only the ini file name, I would the path! Grazie!:confused:

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        XAlien wrote: GetProfileString retrieve only the ini file name You are a little confused....:) GetProfileString retrieve the string asociated with the key. (GetProfileString don't return the path or ini file name) It's important to understand the difference between GetProfileString and GetPrivateProfileString, the First one reads the win.ini file the second one, the ini in a private directory, you must to inform the path and ini file name.... ;) Regards.... Beta. Software undergoes beta testing shortly before it's released. Beta is Latin for "still doesn't work." Carlos Antollini. Sonork ID 100.10529 cantollini

        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