Re: Reading a path value in an "ini" file
Xavier Perrissoud <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAMqkydXzj-=g4mn0msZzwMyrSF3SoxoOMRev=OXXx8kE2KjNNQ@mail.gmail.com> |
Hi On Tue, Oct 1, 2024 at 7:08 PM Vadim Zeitlin <[email protected]> wrote: > On Tue, 1 Oct 2024 10:02:03 -0700 (PDT) Xaviou wrote: > > X> wxFileConfig datas(f_in); > X> datas.SetPath(_T("/Settings")); > X> > X> wxString sValue = datas.Read(_T("KeyName")); > X> > X> ...... > X> All works fine until the value of the corresponding key contains > backslashes (for example the fullpath to a last used file). > X> In this last case, the backslashes are treated as escape chars, > > You can use wxCONFIG_USE_NO_ESCAPE_CHARACTERS to prevent this from > happening. I didn't saw this possibility as I wasn't using the "standard" wxFileConfig constructor. It works fine : thank you. Regards Xav' -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/CAMqkydXzj-%3Dg4mn0msZzwMyrSF3SoxoOMRev%3DOXXx8kE2KjNNQ%40mail.gmail.com.