
VB5 WIN95 API App config info ?
The following will write data to registry:
SaveSetting AppName, Section, Key, Setting
Example: SaveSetting YourApp, Settings, Textbox, Text1.Text
This will write the content of Text1.Text to the registry.
The following will read data from registry:
Variable = GetSetting(AppName, Section, Key[, Default])
Example: Text1.Text = GetSetting (YourApp, Settings, Textbox, "No Value")
This will read the value from the registry and put it into Text1.Text.
If the key doesn't exist, the default text will be used (In this example:
'No Value')
Stig Joar Sanden
ICQ: 13557997
Thunder Scientific Corporation skrev i meldingen
Quote:
>I have a VB5 app that runs under Win95. I am using the API functions
>GetPrivateProfileInt and WritePrivateProfileString to save and restore
>configuration information to a dot-ini file. What are the API calls to save
>and restore this same information to the Registry?
>Bill