Re: Reading a path value in an "ini" file

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZvwsdgAKCRAG6kHeT2we
hgZNAJ0d6cIUmEScNFqSl7L/Eebnn+De1QCfaFQd3CVUeHcDlg6kBgGXj8wUJtw=
=Sd00
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.