Re: How to flush buffer before WritePrivateProfileSectionA call ?
- From: "Bob Butler" <tiredofit@xxxxxxxxxx>
- Date: Tue, 27 Sep 2005 12:09:15 -0700
<prabhutum@xxxxxxxxx> wrote in message
news:1127846679.202658.284250@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Statement:
> lb_rtn = WritePrivateProfileSectionA(ls_datafile, ls_section,
> ls_ini_file)
That will write the contents of ls_section up to the first null or the end
of the string; from your problem it sounds like you are putting the second
section into the string by overwriting the contents instead of assigning a
new value. That's fine but you need to put a null character (vbNullChar or
Chr$(0)) in the string immediately after the new section data.
If that doesn't make sense then post the declarations and sample code
showing how you build ls_section
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
.
- References:
- How to flush buffer before WritePrivateProfileSectionA call ?
- From: prabhutum
- How to flush buffer before WritePrivateProfileSectionA call ?
- Prev by Date: How to flush buffer before WritePrivateProfileSectionA call ?
- Next by Date: Problem with FindFirstFile API, Need help.
- Previous by thread: How to flush buffer before WritePrivateProfileSectionA call ?
- Next by thread: Problem with FindFirstFile API, Need help.
- Index(es):
Relevant Pages
|