How to I access an INI file? 
Author Message
 How to I access an INI file?

I just got VB4 two days and  created a wallpaper changer. For the moment the
only thing it does is select the BMP file that I want to have as my
wallpaper. My question is how do I access the INI file that has the name of
the wallpaper so I can view it and change it with another BMP file.

Eliud



Mon, 17 Jul 2000 03:00:00 GMT  
 How to I access an INI file?

On Thu, 29 Jan 1998 11:37:07 -0800, "Eliud Robledo"

Hi !

Quote:
>wallpaper. My question is how do I access the INI file that has the name of
>the wallpaper so I can view it and change it with another BMP file.

Look for the GetPrivateProfileString API...

Quote:
>Eliud

---
MfG Simon Schoar


PGPKey on request



Mon, 17 Jul 2000 03:00:00 GMT  
 How to I access an INI file?

GetPrivateProfileString is to read the ini

WritePrivateProfileString is to write to the ini

the paramenters are Sectionname, Keyname and file name

heres wht theylook like

[SectionName]
Keyname=Value

hope this throws some light.

Quote:

>I just got VB4 two days and  created a wallpaper changer. For the moment
the
>only thing it does is select the BMP file that I want to have as my
>wallpaper. My question is how do I access the INI file that has the name of
>the wallpaper so I can view it and change it with another BMP file.

>Eliud



Mon, 17 Jul 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. How to access an INI file from script?

2. How can i access a .ini file in EVB?

3. INI-MANAGEMENT: how to locate private Ini-File ?

4. Read/Write INI Files w/Access 7.0

5. Using ini files in Access 2000

6. Convert Excel or Access spreadsheet to INI file format

7. Accessing info from INI file

8. Accessing .INI file

9. Accessing .ini file in connect string

10. Accessing Varialbes in MSACC20.ini file

11. INI file access from VBScripts?

12. Accessing INI files in VB5 ?

 

 
Powered by phpBB® Forum Software