コード例 #1
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
WXDLLIMPEXP_BASE int wxMSLU__tremove(const wxChar *name)
{
    if ( wxUsingUnicowsDll() )
        return remove(wxConvFile.cWX2MB(name));
    else
        return _tremove(name);
}
コード例 #2
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
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);
}
コード例 #3
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
WXDLLEXPORT int wxMSLU_GetSaveFileNameW(void *ofn)
{
    int ret = GetSaveFileName((LPOPENFILENAME)ofn);
    if ( wxUsingUnicowsDll() && ret != 0 )
        wxFixOPENFILENAME((LPOPENFILENAME)ofn);
    return ret;
}
コード例 #4
0
ファイル: mslu.cpp プロジェクト: Anonymous2/project64
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);
}
コード例 #5
0
ファイル: mslu.cpp プロジェクト: Anonymous2/project64
WXDLLIMPEXP_BASE int wxMSLU__wrmdir(const wchar_t *name)
{
    if ( wxUsingUnicowsDll() )
        return wxCRT_RmDirA(wxConvFile.cWX2MB(name));
    else
        return wxCRT_RmDirW(name);
}
コード例 #6
0
ファイル: mslu.cpp プロジェクト: Anonymous2/project64
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);
}
コード例 #7
0
ファイル: mslu.cpp プロジェクト: Anonymous2/project64
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);
}
コード例 #8
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
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);
}
コード例 #9
0
ファイル: mslu.cpp プロジェクト: Anonymous2/project64
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);
}
コード例 #10
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
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);
コード例 #11
0
ファイル: mslu.cpp プロジェクト: HackLinux/chandler-1
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);
    }
}