微软软件也有字串处理的低级bug!

(WinCE/Windows Mobile/Platform Builder的几个bug)
1.【PB4.2致命的 Error PB2502 问题】
  新建的平台名称如果与BSP名称相同,则在加了应用程序(例子中Hello)后,build时提示如下错误并无法生成NK.bin。
  Error PB2502: The feature does not support this configuration.  The feature cannot be built.
  
  详细信息:
  --------------------Configuration: CAYMAN - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  ...
  --------------------Configuration: Hello - Hello-ARMV4 WIN32 (WCE ARMV4) RELEASE--------------------
  Error PB2502: The feature does not support this configuration.  The feature cannot be built.
  
  其实本来正确时应为如下字串的:
  --------------------Configuration: CAYMAN - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  ...
  --------------------Configuration: Hello - CAYMAN-ARMV4 Win32 (WCE ARMV4) Release--------------------
  可见:中间的BSP名被认为是平台项目名了,在中间的编译脚本或程序中处理字串时出错!搞笑的是连最后的Release都成了大写,哈哈。
  
  小结:平台名称不要取容易和BSP或CPU类型相同的字串!(此bug本人在PB5.0中未测试过)
  
  附:网上搜到的老外描述,很不错:
   PB2502 cause found
   The PBnnnn error codes are not documented, and I was recently annoyed
   by the 2502 error (in PB 4.2), whose message string is simply, "The
   feature does not support this configuration. The feature cannot be
   built." Not very meaningful. A check on the group archives returns
   several threads, none of which describe what the cause is.

   But I believe I have figured it out. In my case, it was occurring
   with a user feature I had copied to my new IDE platform. The platform
   gets built with configuration:
   --Configuration: BSP - PLATFORM Win32 (WCE x86) Debug--
   The user feature would *normally* be:
   --Configuration: FEATURE - PLATFORM Win32 (WCE X86) Debug--
   In the error case, the configuration was mangled like this:
   --Configuration: FEATURE - PLATFEATURE Win32 (WCE X86) Debug--
   where the platform name is a superset of the BSP name. Apparently
   there is a script that exchanges the BSP string with that of the
   feature. But stupidly, it does it to the whole string, rather than
   rebuild it from scratch or exchange only the beginning whole word.
   
   I suppose the moral is to make new projects have long and unique names
   (one not a subset of the other), at least until the bug in PB is
   fixed.


2. 【SmartPhone2005模拟器bug:竟然进入联系人菜单后能够支持鼠标(即触摸屏)】
(另外,我的PPC 2005英文模拟器触摸屏是好的,中文则触摸屏不能使用,说不定和这个现象有关系!)

3.【】

一下子忘了,以后补

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值