Revision: 7354 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7354 Author: zmatsuo Date: 2018-12-23 02:32:11 +0900 (Sun, 23 Dec 2018) Log Message: ----------- IME関連ANSI版を使うようにした Modified Paths: -------------- branches/cmake/teraterm/teraterm/ttime.c branches/cmake/teraterm/teraterm/vtwin.cpp -------------- next part -------------- Modified: branches/cmake/teraterm/teraterm/ttime.c =================================================================== --- branches/cmake/teraterm/teraterm/ttime.c 2018-12-22 17:31:59 UTC (rev 7353) +++ branches/cmake/teraterm/teraterm/ttime.c 2018-12-22 17:32:11 UTC (rev 7354) @@ -29,6 +29,9 @@ /* Tera Term */ /* TERATERM.EXE, IME interface */ +#undef UNICODE +#undef _UNICODE + #include "teraterm.h" #include "tttypes.h" #include <stdlib.h> Modified: branches/cmake/teraterm/teraterm/vtwin.cpp =================================================================== --- branches/cmake/teraterm/teraterm/vtwin.cpp 2018-12-22 17:31:59 UTC (rev 7353) +++ branches/cmake/teraterm/teraterm/vtwin.cpp 2018-12-22 17:32:11 UTC (rev 7354) @@ -3176,7 +3176,8 @@ memset(comp, 0, sizeof(comp)); hIMC = ImmGetContext(HVTWin); if (hIMC) { - ret = ImmGetCompositionString(hIMC, GCS_COMPSTR, comp, sizeof(comp)); + // TODO \x82\xA2\x82\xAB\x82Ȃ\xE8\x83C\x83\x93\x83|\x81[\x83g\x82\xB5\x82Ă\xA2\x82\xE9 + ret = ImmGetCompositionStringA(hIMC, GCS_COMPSTR, comp, sizeof(comp)); if (ret == IMM_ERROR_NODATA || ret == IMM_ERROR_GENERAL) { memset(comp, 0, sizeof(comp)); }