Tips of windows mobile development

本文详细介绍了如何通过手动步骤创建适用于Windows Mobile平台的CAB安装包,包括使用VS2005或VS2008制作标准CAB、编辑_Setup.xml文件以实现中文显示等功能,并提供了一些调试和配置技巧。

7. How to make the Chinese Cab for Windows Mobile by manual
    Step by step:
    First - make the standard Cab(Should be English version) by VS 2005 or VS 2008
    Second - Extract the Cab and Read to edit the _Setup.xml file(don't change the file default encode) in the cab fies
    Third - get the Unicode code of the characters you want to Chinese information(chinese link, App name, etc.)
               for example: '我' -> 0x1162 (you can use Hex Edit tools get the Unicode code)
    Forth - make the formart codes insert or replace the characters you show the Chinese information(link,APP Name....) in _Setup.xml.
               format: '我' -> x6211; (include all Red Characters)
    Last -  Save _Setup.xml and compress all files to CAB include _setup.xml with makecab.exe or other tools
               compress all files to CAB include _setup.xml with makecab.exe or other tools.


1. Cancel Activesync Show:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services]
"GuestOnly"=dword:00000001

2. No information in the removing programe item:
<parm name="NoUninstall" value="1" />

Enable Dialog Application behind the destop window
only make the dialog style OVERLAP, not POP .

3. Correctively calculate struct data size in Wince

struct stsizetag {
unsigned short item1;
unsigned short item2;
unsigned char item3;
}stsize;
sizeof(stsize) == 6 is not 5
add #param pack(1) in the file head, just can avoid this kind of error.

4. Remove Error In For Loop Scope
Open "project" -> "property" -> "C\C++" -> "language"
Change the setting of  "Force Conformance In For Loop Scope"  to  "No"

5. Control install path strongly(NOT show select UI)
theory: remove the %INSTALLDIR% macro
step 1:
    extract the cab (winrar)
step 2: 
    edit _setup.xml with notepad tools
     a) remove <parm name="InstallDir" value="*********" translation="install" /> 
     b) replace all of %INSTALLDIR% with absolute path
     c) save and exit
step 3:
     compress all files to CAB include _setup.xml with makecab.exe or other tools


6. Prevents a 2-Pixel highlight from being drawn at the top of the Control
    Set control style include CCS_NODIVIDER

转载于:https://www.cnblogs.com/JLMobile/archive/2008/04/14/377432.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值