rts_winFileDialog.h
606 Bytes
/*
1) Make sure to not use Unicode characters. Using the Unicode character set does some
strange stuff involving LPWSTR and LPWCHAR.
2) Make sure an empty string is passed:
char filename[255] = "";
rtsOpenFileDialog(filename, 255);
*/
#pragma comment( lib, "comctl32" )
#include <windows.h>
#include <commctrl.h>
#include <commdlg.h>
#include <Shlobj.h>
bool rtsOpenFileDialog( char *filename, int filenameSize, const char *filetypes);
bool rtsSaveFileDialog( char *filename, int filenameSize, const char *filetypes);
bool rts_winBrowseFolderDialog( char* title, char* foldername);