急!TCPMP在WINCE6.0下编译时字符集出错

shuilingshenjun 2009-09-01 06:48:07
WINVER not defined. Defaulting to 0x0400, which is appropriate for all supported Windows CE versions
1>C:\WINCE600\PUBLIC\COMMON\SDK\INC\winnt.h(790) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\WINCE600\PUBLIC\COMMON\SDK\INC\winnt.h(790) : error C2143: syntax error : missing ',' before '&'

1>_CE_ACTIVEX was not defined because this Windows CE SDK does not have DCOM.
1> _CE_ACTIVEX could be caused to be defined by defining _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA, but it is recommended that this be done only for single-threaded apps.
1>_ATL_NO_HOSTING was defined because _CE_ACTIVEX was not defined.

1>.\win32\playlst.cpp(75) : error C2440: 'initializing' : cannot convert from 'const wchar_t [12]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(76) : error C2440: 'initializing' : cannot convert from 'const wchar_t [14]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(77) : error C2440: 'initializing' : cannot convert from 'const wchar_t [19]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(78) : error C2440: 'initializing' : cannot convert from 'const wchar_t [17]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(79) : error C2440: 'initializing' : cannot convert from 'const wchar_t [15]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(117) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const tchar_t *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(118) : error C2664: 'GetModuleFileNameW' : cannot convert parameter 2 from 'tchar_t *' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(119) : error C2665: 'wcsrchr' : none of the 2 overloads could convert all the argument types
1> c:\wince600\public\common\sdk\inc\stdlib.h(179): could be 'const wchar_t *wcsrchr(const wchar_t *,wchar_t)'
1> c:\wince600\public\common\sdk\inc\stdlib.h(198): or 'wchar_t *wcsrchr(wchar_t *,wchar_t)'
1> while trying to match the argument list '(tchar_t *, char)'
1>.\win32\playlst.cpp(128) : error C2664: 'GetModulePath' : cannot convert parameter 1 from 'TCHAR [256]' to 'tchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(164) : error C2440: 'type cast' : cannot convert from 'tchar_t *' to 'CString'
1> No constructor could take the source type, or constructor overload resolution was ambiguous
1>.\win32\playlst.cpp(216) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(217) : error C2664: 'wcscmp' : cannot convert parameter 1 from 'tchar_t [256]' to 'const wchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(218) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(226) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(227) : error C2664: 'wcscmp' : cannot convert parameter 1 from 'tchar_t [256]' to 'const wchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(228) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(232) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(233) : error C2664: 'wcscmp' : cannot convert parameter 1 from 'tchar_t [256]' to 'const wchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(234) : error C2440: '=' : cannot convert from 'tchar_t [256]' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(281) : error C2440: '=' : cannot convert from 'tchar_t *' to 'LPWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\win32\playlst.cpp(282) : error C2664: 'wcslen' : cannot convert parameter 1 from 'const tchar_t *' to 'const wchar_t *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>openfile_win32.cpp
上面红的错误是怎么回事,系统自己的怎么会出错呢.
下面的一些错误是在编译TCPMP时,其INTERFACE界面出现的大量错误,我有5.0下的EVC,编译没有任何问题,但用VS2005出现了.请教下大概在什么方向..谢谢!
...全文
225 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuilingshenjun 2009-09-03
  • 打赏
  • 举报
回复
现在 能编译过了,现在双出现问题了
1 有时候启动音乐是会提示 音乐程序有一个很严重的错误,关闭此提示框会关闭音乐程序
Application musicplayer.exe encountered s serious error and must shut down
2 代言 assert(Size==sizeof(tickt_t)
这个问题很奇怪,,size 在interface里就是附的sizeof(tickt_t)
typedef int tickt_t;

请问哪位能指点下.
hhygcy 2009-09-02
  • 打赏
  • 举报
回复
看样子像wchar_t或者UNICODE的问题 看看你的工程有没有定义UNICODE类似的宏 或者修改编译选项C/C++=>Language=>Treat wchar_t as Build-in Type看看?
like_33833006 2009-09-02
  • 打赏
  • 举报
回复
UP
shuilingshenjun 2009-09-02
  • 打赏
  • 举报
回复
工程里定义了UNICODE
DEBUG;ARM;_ARM_;ARMV4I;INTERFACE_EXPORTS;_WIN32_WCE=$(CEVER);$(CePlatform);UNDER_CE=$(CEVER);UNICODE
wchar_t 也是作为内置类型,

不知道哪里出了问题,很郁闷..各位有何建议,请指点,谢谢Q

566

社区成员

发帖
与我相关
我的任务
社区描述
英特尔® 边缘计算,聚焦于边缘计算、AI、IoT等领域,为开发者提供丰富的开发资源、创新技术、解决方案与行业活动。
社区管理员
  • 英特尔技术社区
  • shere_lin
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧