WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name) { if ( wxUsingUnicowsDll() ) return remove(wxConvFile.cWX2MB(name)); else return _tremove(name); }
WXDLLIMPEXP_BASE FILE* wxMSLU__tfopen(const wxChar *name,const wxChar* mode) { if ( wxUsingUnicowsDll() ) return fopen(wxConvFile.cWX2MB(name),wxConvFile.cWX2MB(mode)); else return _tfopen(name,mode); }
WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn) { int ret = GetSaveFileName((LPOPENFILENAME)ofn); if ( wxUsingUnicowsDll() && ret != 0 ) wxFixOPENFILENAME((LPOPENFILENAME)ofn); return ret; }
WXDLLIMPEXP_BASE int wxMSLU__wstat(const wchar_t *name, wxStructStat *buffer) { if ( wxUsingUnicowsDll() ) return wxCRT_StatA((const char*)wxConvFile.cWX2MB(name), buffer); else return wxCRT_StatW(name, buffer); }
WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wchar_t *name) { if ( wxUsingUnicowsDll() ) return wxCRT_RmDirA(wxConvFile.cWX2MB(name)); else return wxCRT_RmDirW(name); }
WXDLLIMPEXP_BASE int wxMSLU__waccess(const wchar_t *name, int mode) { if ( wxUsingUnicowsDll() ) return wxCRT_AccessA(wxConvFile.cWX2MB(name), mode); else return wxCRT_AccessW(name, mode); }
WXDLLIMPEXP_BASE int wxMSLU__wopen(const wchar_t *name, int flags, int mode) { if ( wxUsingUnicowsDll() ) return wxCRT_OpenA(wxConvFile.cWX2MB(name), flags, mode); else return wxCRT_OpenW(name, flags, mode); }
WXDLLIMPEXP_BASE int wxMSLU__trename(const wxChar *oldname, const wxChar *newname) { if ( wxUsingUnicowsDll() ) return rename(wxConvFile.cWX2MB(oldname), wxConvFile.cWX2MB(newname)); else return _trename(oldname, newname); }
WXDLLIMPEXP_BASE FILE* wxMSLU__wfreopen(const wchar_t *name, const wchar_t* mode, FILE *stream) { if ( wxUsingUnicowsDll() ) return freopen(wxConvFile.cWX2MB(name), wxConvFile.cWX2MB(mode), stream); else return _wfreopen(name, mode, stream); }
WXDLLIMPEXP_BASE int wxMSLU__wopen(const wxChar *name, int flags, int mode) { if ( wxUsingUnicowsDll() ) #ifdef __BORLANDC__ return open(wxConvFile.cWX2MB(name), flags, mode); #else return _open(wxConvFile.cWX2MB(name), flags, mode); #endif else return _wopen(name, flags, mode);
WXDLLEXPORT int wxMSLU_DrawStateW(WXHDC dc, WXHBRUSH br, WXFARPROC outputFunc, WXLPARAM lData, WXWPARAM wData, int x, int y, int cx, int cy, unsigned int flags) { // VS: There's yet another bug in MSLU: DrawStateW behaves like if it was // expecting char*, not wchar_t* input. We have to use DrawStateA // explicitly. if ( wxUsingUnicowsDll() ) { return DrawStateA((HDC)dc, (HBRUSH)br, (DRAWSTATEPROC)outputFunc, (LPARAM)(const char*) wxConvLocal.cWX2MB((const wxChar*)lData), wData, x, y, cx, cy, flags); } else { return DrawStateW((HDC)dc, (HBRUSH)br, (DRAWSTATEPROC)outputFunc, lData, wData, x, y, cx, cy, flags); } }