I've wondered why FAR when it's compiled with Visual C isn't built with /DUNICODE /D_UNICODE and with this occasion I've found some minor errors in the declarations of this functions:
In farwinapi.cpp:
Code: Select all
BOOL WINAPI FAR_CharToOemBuff(LPCSTR lpszSrc,LPTSTR lpszDst,DWORD cchDstLength)
{
return CharToOemBuff(lpszSrc,lpszDst,cchDstLength);
}
Code: Select all
BOOL CharToOemBuff(
LPCTSTR lpszSrc,
LPSTR lpszDst,
DWORD cchDstLength
);
Similar for
Code: Select all
BOOL WINAPI FAR_CharToOem(LPCSTR lpszSrc,LPTSTR lpszDst)
{
return CharToOem(lpszSrc,lpszDst);
}
Code: Select all
BOOL CharToOem(
LPCTSTR lpszSrc,
LPSTR lpszDst
);
Anyway, is there a special reason not to mark the entire build as UNICODE,_UNICODE?
Best regards