我正在研究自由拼音输入法,下载了freepy30,并且按照编译提示做的:
1:新建dll空工程,把文件选了进去。
2:imm目录下的文件拷到VC98\Lib目录下。
3:编译器project菜单settings项,在link选项中加上imm32.lib。
然后编译,可是编译不过,为什么?
我的编译器是Microsoft Visual C++ 6.0
下面是部分错误提示:
c:\documents and settings\administrator\桌面\ctest\freepy.h(128) : error C2061: syntax error : identifier 'COMPOSITIONSTRING'
c:\documents and settings\administrator\桌面\ctest\freepy.h(134) : error C2059: syntax error : '}'
c:\documents and settings\administrator\桌面\ctest\freepy.h(137) : error C2061: syntax error : identifier 'CANDIDATEINFO'
c:\documents and settings\administrator\桌面\ctest\freepy.h(144) : error C2059: syntax error : '}'
c:\documents and settings\administrator\桌面\ctest\freepy.h(211) : error C2081: 'LPINPUTCONTEXT' : name in formal parameter list illegal
c:\documents and settings\administrator\桌面\ctest\freepy.h(218) : error C2081: 'LPINPUTCONTEXT' : name in formal parameter list illegal
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2065: 'LPINPUTCONTEXT' : undeclared identifier
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2146: syntax error : missing ';' before identifier 'lpIMC'
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2065: 'lpIMC' : undeclared identifier
c:\documents and settings\administrator\桌面\ctest\freepy.c(182) : error C2275: 'LPUIEXTRA' : illegal use of this type as an expression
c:\documents and settings\administrator\桌面\ctest\freepy.h(156) : see declaration of 'LPUIEXTRA'
请高手指教了,我只有20分,请别嫌少,谢谢!!
1:新建dll空工程,把文件选了进去。
2:imm目录下的文件拷到VC98\Lib目录下。
3:编译器project菜单settings项,在link选项中加上imm32.lib。
然后编译,可是编译不过,为什么?
我的编译器是Microsoft Visual C++ 6.0
下面是部分错误提示:
c:\documents and settings\administrator\桌面\ctest\freepy.h(128) : error C2061: syntax error : identifier 'COMPOSITIONSTRING'
c:\documents and settings\administrator\桌面\ctest\freepy.h(134) : error C2059: syntax error : '}'
c:\documents and settings\administrator\桌面\ctest\freepy.h(137) : error C2061: syntax error : identifier 'CANDIDATEINFO'
c:\documents and settings\administrator\桌面\ctest\freepy.h(144) : error C2059: syntax error : '}'
c:\documents and settings\administrator\桌面\ctest\freepy.h(211) : error C2081: 'LPINPUTCONTEXT' : name in formal parameter list illegal
c:\documents and settings\administrator\桌面\ctest\freepy.h(218) : error C2081: 'LPINPUTCONTEXT' : name in formal parameter list illegal
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2065: 'LPINPUTCONTEXT' : undeclared identifier
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2146: syntax error : missing ';' before identifier 'lpIMC'
c:\documents and settings\administrator\桌面\ctest\freepy.c(181) : error C2065: 'lpIMC' : undeclared identifier
c:\documents and settings\administrator\桌面\ctest\freepy.c(182) : error C2275: 'LPUIEXTRA' : illegal use of this type as an expression
c:\documents and settings\administrator\桌面\ctest\freepy.h(156) : see declaration of 'LPUIEXTRA'
请高手指教了,我只有20分,请别嫌少,谢谢!!
谢谢 schlafenhamster 和lfchen 的关注,谢谢!
你得装WinCE的SDK吧。