VB5 WIN95 API App config info ? 
Author Message
 VB5 WIN95 API App config info ?

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


Fri, 21 Sep 2001 03:00:00 GMT  
 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



Fri, 21 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Extracting App Info From Win95 .LNK Files (Please Help)

2. get info about Special Obejct-win95-vb5

3. need api for putting app in tray of win95

4. Problem with VB3.0 app using Win95 API

5. CreateProcess API, Win95/98, and DOS Apps

6. Question about config info (INI/REG/XML/???)

7. saving and using config info

8. Detecting an active, full-screen DOS box in Win95 from a running VB5 app

9. Switching Video Modes From Within VB5 App (Win95)

10. Detecting an active, full-screen DOS box in Win95 from a VB5 app

11. Using registry for config info through Visual Basic

12. Storing config info in the registry?

 

 
Powered by phpBB® Forum Software