Editor's Note: A similar function named UIGETDIR will be included in MATLAB R13.
The function runs the standard Windows browse for folder dialog box. The wrapper M-file UIGETFOLDER calls a MEX file uigetfolder_win32.dll, that
handles the Win32 API stuff.
The C-MEX function uigetfolder_win32 was compiled in MATLAB Version 6.0.0.88 (R12) using the built in Lcc 2.4 compiler.
The function has been tested in MATLAB Version 6.0.0.88 (R12).
The dialog is now modal, unlike the previous version for R11.1.
It is now possible to use the C-MEX function with the MATLAB compiler (R12), and it runs in standalone executables. To build an example standalone
executable use
mcc -m
uigetfolder_win32_compiler_test.m To use the wrapper uigetfolder you must use the special standalone version
UIGETFOLDER_STANDALONE and have the C/C++ Graphics Library. You can build
a simple example with
mcc -B sgl
uigetfolder_compiler_test.m |