Re: Reading a path value in an "ini" file
Xavier Perrissoud <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAMqkydWjMRDdL2F+1FZN3Kwpsz2BYRP+0AoXcEPJXShsHo4tTg@mail.gmail.com> |
Hi. On Tue, Oct 1, 2024 at 7:23 PM Igor Korot <[email protected]> wrote: > Xaviou, > > On Tue, Oct 1, 2024 at 12:02 PM Xaviou <[email protected]> wrote: > > > > Hi. > > As said in the title, I have to read some values in an ini file created > by another app. > > Here is the corresponding part of the code (simplified): > > > > wxFileInputStream f_in(_T("Path to the ini file")); > > wxFileConfig datas(f_in); > > datas.SetPath(_T("/Settings")); > > wxString sValue = datas.Read(_T("KeyName")); > > ...... > > > > As you already have the wxConfig - why are you not using its API? > I'm not sure it could work as my libs are build with the defaut following flag: #define wxUSE_INICONF 0 On Tue, Oct 1, 2024 at 7:23 PM Igor Korot <[email protected]> wrote: > Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. > > I apologize: I posted without worrying about the mailing list posting rules. 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/CAMqkydWjMRDdL2F%2B1FZN3Kwpsz2BYRP%2B0AoXcEPJXShsHo4tTg%40mail.gmail.com.