Re: How to flush buffer before WritePrivateProfileSectionA call ?



<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..."

.



Relevant Pages

  • Re: Convert String to Code
    ... If so it'd be easy to pull the string ... apart and do the math. ... VB.Net: "Fool me once..." ... Prev by Date: ...
    (microsoft.public.vb.general.discussion)
  • Re: Lets Be Shut Of It.....
    ... wasn't the last threadorama also started with a post saying "let's ... show restraint and stop having long silly flaming threads"? ... As long as it's not showing, ... If it can be covered by a G string, I don't think we should worry about it. ...
    (rec.music.makers.guitar.acoustic)
  • Re: Compile error: Block If without If
    ... CaseNumber, OfficerNumber, and Incident are showing up in the string. ... Regarding the record source table, I have lost track of what you are trying ...
    (microsoft.public.access.formscoding)
  • Re: Move thumb for each string?
    ... previous note with my *left* hand technique (i.e., just lifting the finger ... that's holding the string down). ... I play with both a pick and fingers; what he's showing wouldn't ...
    (alt.guitar.bass)
  • Re: MySQL & Perl: Using a Dynamic SELECT Statement
    ... Jason Carlton wrote: ... if ($type eq "loose") { ... You're using variables without showing us what they contain. ... Or was that supposed to be a string? ...
    (comp.lang.perl.misc)