File:  [RetroPC.NET] / np2 / win9xc / oemtext.cpp
Revision 1.1: download - view: text, annotated - select for diffs
Sun Mar 20 17:58:20 2005 JST (20 years, 7 months ago) by yui
Branches: MAIN
CVS tags: VER_0_82_x64, VER_0_82, VER_0_81A, VER_0_81, HEAD
support profiler (T.Yui)

#include	"compiler.h"
#include	"oemtext.h"


#if defined(_UNICODE)
UINT oemtext_sjistooem(TCHAR *dst, UINT dcnt, const char *src, UINT scnt) {

	return(MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, src, -1, dst, dcnt));
}

UINT oemtext_oemtosjis(char *dst, UINT dcnt, const TCHAR *src, UINT scnt) {

	return(WideCharToMultiByte(CP_ACP, 0, src, -1, dst, dcnt, NULL, NULL));
}
#endif


RetroPC.NET-CVS <cvs@retropc.net>