Tips of windows mobile development

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: '我' -> 我 (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

posted @ 2008-04-14 15:48  J's Blog  阅读(918)  评论(2)    收藏  举报