General discussion

  • Creator
    Topic
  • #2093099

    Registry vs INI Files

    Locked

    by an_olddog ·

    I am new to Software Registry Information on software development(instead of using “INI Files”), but I am willing to learn how it is done.

    I would like find out a program detects if the programs software area is there in the System Registry, if not, set it up. And how do you do a read of info from the system registry and to update the info, and opening and closing it. And last of all, how do you delete the program’s system registry information is the need arises. I am doing this all in MSVB. In reading about it, reading from the system is faster – instead of reading from INI Files. Could any body help?? Oh, Could you provide VB code examples of how these steps are implemented?.

    Thanks in Advance.

    Thom.

All Comments

  • Author
    Replies
    • #3871447

      Registry vs INI Files

      by simonchan ·

      In reply to Registry vs INI Files

      You may use the Registry API to save and retrieve registry setting.

      I hope that the following articles may help (please make sure that no space is inserted in the URL string),

      http://support.microsoft.com/support/kb/articles/Q145/6/79.ASP

      If you have Windows Scripting Host installed in your PC, you may use the COM object WScript.Shell.

      The following article is for Visual FoxPro, but you may also apply it in VB program,

      http://support.microsoft.com/support/kb/articles/Q244/6/75.ASP

      • #3870338

        Registry vs INI Files

        by an_olddog ·

        In reply to Registry vs INI Files

        Okay SimonChan: Dec 11th, 2000

        Ok with what you have done, but for 100 points – I asked for was some solid MSVB program examples dealing with System Registry API actions do the following:

        0) Detecting if the program registry area was present, if not create it – say three levels deep.
        1) Reading info from the System Registry, e.g.: character and numeric.
        2) Updating/Saving info from the System Registry, e.g.: character and numeric.

        3) Opening and Closing the System Registry in doing the above mentioned actions.
        4) And then Deleting the program’s system registry area – if needed.

        When I was in college, a professor taught me to back up my answers to any assignment with solid examples of what I am trying toprove.

        What I would like to ask of you, is some solid VB examples of these functions in action – so as to show me what is going on, with some understandable comments to go along. I hope you can come thru.

        Thanks(TIA).

        An_OldDog.

    • #3868469

      Registry vs INI Files

      by bssrssm ·

      In reply to Registry vs INI Files

      for just 100 points, you get what you pay for

      • #3882311

        Registry vs INI Files

        by an_olddog ·

        In reply to Registry vs INI Files

        Okay, “bssrssm”, will increasing the points to 200 be honestly enough for the complete VB examples or will require some more points?

        An_OldDog.

        ?

Viewing 1 reply thread