Page 1 of 1

How to find specific usage of function.

Posted: Mon Jun 29, 2020 2:21 pm
by Andy
Recently, I use official documentshttps://docs.wxwidgets.org/for ind the implementation of some functions,for example the function of class wxFile.But,It is not enough to fully understand the meaning of each parameter.
Question1:

Code: Select all

wxFFileInputStream::wxFFileInputStream	(	
const wxString & 	filename,
const wxString & 	mode = "rb" 
)	
I didn't find the value of the mode!Obviously ,it has more than rb, there should be w and other. Where I can get the specific parameters of these functions and the meaning of these parameters?
Question2:
Just looking for the function doesn't seem to help me program correctly,where i can find some examples of the widgest?

Re: How to find specific usage of function.

Posted: Mon Jun 29, 2020 2:25 pm
by Kvaz1r
You can see details of the implementation in source code. Just use search for Github repo - https://github.com/wxWidgets/wxWidgets

As for examples - see samples directory.

Edit:

mode it's file access mode for C-style I/O so for details use cppreference fopen
wxWidgets just provide useful wrapper (but not only) for them.

Re: How to find specific usage of function.

Posted: Tue Jun 30, 2020 2:20 am
by Andy
mode it's file access mode for C-style I/O so for details use cppreference fopen
wxWidgets just provide useful wrapper (but not only) for them.
Thank you for your help, which convinced me that my program will not have unknown errors in the future.