CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Linefeed character truncates the data in WritePrivateProfileString

    I am using WritePrivateProfileString to store some character data.Now if the string to be stored contains Line Feed (Chr$(10)) character then WritePrivateProfileString terminates the string and stores characters upto chr$(10) in the ini file.Is there any way of storing line feed characters in an ini file using WritePrivateProfileString


  2. #2
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: Linefeed character truncates the data in WritePrivateProfileString

    afaik you can't, but you can replace a vbcrlf with another char, and when reading the ini file, change it back

    Crazy D :-)
    "One ring rules them all"

  3. #3
    Guest

    Re: Linefeed character truncates the data in WritePrivateProfileString

    But in that case how to take care if the same character is actually there , I mean it will inadvertently get replaced by linefeed


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured