Re: 實作 Windows 平台上免安裝的行列三十輸入法
※ 引述《seed2501 (呆子)》之銘言:
: : ***--- 送字
: : 中文與英文全形:使用剪貼薄送字(SendInput 送出 CTRL + V)
: : 英文半形:使用 SendMessage 送出 WM_IME_CHAR
1. pietty 不接受 Ctrl-V, 還是要用 WM_IME_CHAR
2. 可以從 linux cross compile
http://www.libsdl.org/extras/win32/cross/README.txt
http://www.libsdl.org/extras/win32/cross/old/\
mingw32-linux-x86-glibc-2.3.tar.gz
3. linux 要全用小寫. (keyhook.h 正確)
#include <windowsX.h> => #include <windowsx.h>
4.
Keyhook/keyhook.h 要有 extern "C" 的 keyhook.a 才正常,
#ifdef BUILD_DLL
#if defined(__cplusplus)
#define _KEYHOOKEXPORT extern "C" __declspec(dllexport)
#else
#define _KEYHOOKEXPORT __declspec(dllexport)
#endif
#elif defined(__cplusplus)
#define _KEYHOOKEXPORT extern "C" __declspec(dllimport)
#else
#define _KEYHOOKEXPORT __declspec(dllimport)
#endif
否則會
/usr/local/cross-tools/bin/i386-mingw32msvc-g++ main.o message.o keyhandle.o arrayMain.o CINFile.o BOXFile.o array.res -o array30ex.exe -L"c:/MinGW/lib" -L".
main.o(.text+0x33b):main.cpp: undefined reference to `__imp__installKeyHook@8'
message.o(.text+0x881):message.cpp: undefined reference to `__imp__removeKeyHook@0'
collect2: ld returned 1 exit status
make: *** [array30ex.exe] Error 1
5. linux path
Makefile.linux
CC = /usr/local/cross-tools/bin/i386-mingw32msvc-g++
WINDRES = /usr/local/cross-tools/bin/i386-mingw32msvc-windres
/usr/local/cross-tools/bin/i386-mingw32msvc-strip $(BIN)
: Source code (v1.0.1)
: http://ray2501.googlepages.com/Array30Ex.zip
: Binary File:
: http://ray2501.googlepages.com/Array30Ex-bin.zip
6.
請問 source code 的授權是 Public domain, BSD, 還是 GPL?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.192.198.24
※ 編輯: cnoize 來自: 210.192.198.24 (06/13 15:15)
推
06/13 19:05, , 1F
06/13 19:05, 1F
推
06/20 22:00, , 2F
06/20 22:00, 2F
→
06/20 22:01, , 3F
06/20 22:01, 3F
討論串 (同標題文章)
Array 近期熱門文章
PTT數位生活區 即時熱門文章