|
-
Feb 7th, 2000, 01:53 AM
#1
Thread Starter
New Member
I want to know which is the purpose of an INI file. I'm making an app with VB6.0 - SQL server7.0. I know that some apps have an INI file which contains password, and other parametres..
I would like to know more about INI files and his utilities. I want to know which are the typical the things you put in an INI file and how to use thems.
I suppose that using them I can get some advantage in my app. isn't it???
Any advice will be greatly apreciatted.
Nauj
-
Feb 7th, 2000, 02:03 AM
#2
While ini files are popular, the Registry is gradually replacing the use of ini files. having said that, then typically the things that are stored in an ini file are things that user can change (form positions, colors, etc) and that you as a user would expect to find the next time you start the app. Here is what MSDN help has to say
=======================================
Managing Application Settings
In Microsoft Windows 3.1 and earlier versions of Windows, program settings like window positions, files used, and other items were commonly stored in .ini files. In Windows NT, Windows 95, and later versions of Windows these program settings are stored in the system registry.
Visual Basic provides a standard registry location for storing program information for applications created in Visual Basic:
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\appname\section\key
Visual Basic also provides four statements and functions to manipulate the settings stored in your application's registry location.
Function or Statement Description
GetSetting function Retrieves registry settings.
SaveSetting statement Saves or creates registry settings.
GetAllSettings function Returns an array containing multiple registry settings.
DeleteSetting statement Deletes registry settings.
Note To view registry entries, use the Regedit application, included with Windows 95 and Windows NT.
To read more about using application settings, see the following topics:
Creating or Saving Application Settings Explains how to save new values for registry keys stored in your application's registry location.
Retrieving Application Settings Explains how to retrieve registry values stored in your application's registry location.
Deleting Application Settings Explains how to delete registry keys, sections, or an application's registry location.
------------------
Marty
What did the fish say when it hit the concrete wall?
> > > > > "Dam!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|