Fail to read ini file

Tian 40 Reputation points
2024-02-01T02:19:49.62+00:00

Can help me take a look what i am missing for. My code always hit 'ini file is not defined' Below is my code Imports MadMilkman.Ini Dim ini As New IniFile() ini.Load("C:\New folder\GL.ini") Dim readValue = ini.Sections("MAIN").Keys("Setting_1").Value

Developer technologies VB
{count} votes

2 answers

Sort by: Most helpful
  1. WayneAKing 4,931 Reputation points
    2024-02-03T05:51:35.4133333+00:00

    Did you do all of the following?

    • (1) Download the prebuilt dll for MadMilkman.Ini or the complete ZIP package.
    • (2) Run the installer for the prebuilt extension - the .msi file.
    • (3) Add a Reference to the Extension to your project. See Pic1.
    • (4) Verify that the extension is in the project references. See Pic2.
    • Wayne

    Pic1

    Pic2


  2. WayneAKing 4,931 Reputation points
    2024-02-06T07:21:13.38+00:00

    Go to the product github page.

    • https://github.com/MarioZ/MadMilkman.Ini
    • Click on the green button.
    • Select Download ZIP
    • Extract the contents.
    • Run the msi file to install the extension.
    • If you don't want to install it, then extract the dll file from
    • the embedded MadMilkman.Ini.zip file. Add the dll to the
    • references in your project.

    You will have to manually extract the Help file as well, if you don't run the msi installer. Pic1

    Pic2

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.