Article View: comp.lang.basic.visual
Article #320Re: HELP !!! ... How i can read INI files in VB4 ....
From: Bart Lateur
Date: Tue, 22 Apr 1997 00:00
Date: Tue, 22 Apr 1997 00:00
31 lines
1834 bytes
1834 bytes
"Javier Calder�n" <jcaldero@ctc-mundo.net> wrote:
>In VB3 i use the getProfile function to read .INI files but in VB4 it reads
>only one time and when there�s some change in the INI file and i try read
>the .INI file again, I CAN�T SEE THE CHANGES.
>Someone knows another way to read .INI files (and changes over these files)
>in VB4 over Win 3, Win 95 and WinNT 4.0 WS.
>Your help would be much appreciated.
Have you notified the system that the INI file is changed?
This is from the Win3.1 SDK HLP file for WritePrivateProfileString:
To improve performance, Windows keeps a cached version of the
most-recently accessed initialization file. If that filename is
specified and the other three parameters are NULL, Windows
flushes the cache.
I bet this will solve your problem.
There's a similar comment for WriteProfileString.
Note: a NULL is really a zero as long (0&). You may need to change the
declaration to get this to work ("Byval ... as any" should do).
Gent (Ghent, Gand),
Belgium,
Europe,
3rd planet from the sun.
Technical Details
Message-ID:
<335cb2f4.15161551@news.tornado.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bc4bb2$2eb66ae0$62011bc8@tiburon>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f5f6f,124bc44337efa593 X-Google-Attributes: gidf5f6f,public X-Google-Thread: 110e3b,124bc44337efa593 X-Google-Attributes: gid110e3b,public X-Google-Thread: 1053fc,124bc44337efa593 X-Google-Attributes: gid1053fc,public X-Google-Thread: f645d,124bc44337efa593 X-Google-Attributes: gidf645d,public From: bart.mediamind@tornado.be (Bart Lateur) Subject: Re: HELP !!! ... How i can read INI files in VB4 .... Date: 1997/04/22 Message-ID: <335cb2f4.15161551@news.tornado.be> X-Deja-AN: 236692305 References: <01bc4bb2$2eb66ae0$62011bc8@tiburon> Organization: MediaMind Newsgroups: comp.lang.basic.visual,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.misc,es.comp.lenguajes.visual-basic