]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/mbcnvfil.tex
gave default parameters for wxBrush() ctor from wxColour (this is what is used in...
[wxWidgets.git] / docs / latex / wx / mbcnvfil.tex
... / ...
CommitLineData
1%
2% automatically generated by HelpGen from
3% ../include/wx/strconv.h at 25/Mar/00 10:20:56
4%
5
6\section{\class{wxMBConvFile}}\label{wxmbconvfile}
7
8This class converts file names between filesystem multibyte encoding and
9Unicode. It has one predefined instance, {\bf wxConvFile}.
10Since some platforms (e.g. Win32) use Unicode in the filenames,
11and others (e.g. Unix) use multibyte encodings, this class should only
12be used directly if wxMBFILES is defined to 1. A convenience macro,
13wxFNCONV, is defined to wxConvFile.cWX2MB in this case. You could use it
14like this:
15
16\begin{verbatim}
17wxChar *name = wxT("rawfile.doc");
18FILE *fil = fopen(wxFNCONV(name), "r");
19\end{verbatim}
20
21(although it would be better to use wxFopen(name, wxT("r")) in this case.)
22
23\wxheading{Derived from}
24
25\helpref{wxMBConv}{wxmbconv}
26
27\wxheading{Include files}
28
29<wx/strconv.h>
30
31\wxheading{See also}
32
33\helpref{wxMBConv classes overview}{mbconvclasses}
34
35\latexignore{\rtfignore{\wxheading{Members}}}
36
37
38\membersection{wxMBConvFile::MB2WC}\label{wxmbconvfilemb2wc}
39
40\constfunc{size\_t}{MB2WC}{\param{wchar\_t* }{buf}, \param{const char* }{psz}, \param{size\_t }{n}}
41
42Converts from multibyte filename encoding to Unicode. Returns the size of the destination buffer.
43
44\membersection{wxMBConvFile::WC2MB}\label{wxmbconvfilewc2mb}
45
46\constfunc{size\_t}{WC2MB}{\param{char* }{buf}, \param{const wchar\_t* }{psz}, \param{size\_t }{n}}
47
48Converts from Unicode to multibyte filename encoding. Returns the size of the destination buffer.
49