首页 Soft PlugIn RAN乱 Dev开发 Info资料 English WAP 留言 登陆 注册
-
Posted by Yippee | 评论(0) | 引用(0) | 阅读5976次
WINCE VS.NET 开发 中文 模拟器

D:\ms\wince\sp2003CNimg www.shengfang.org
Chinese Simplified Emulation Images.msi
SP_2003_CHS.bin 15.0 MB (15,788,923 字节)
SP_2003_CHS_VIRTUAL_RADIO.bin 15.0 MB (15,794,099 字节)

3) Localized Emulation Iamges for Windows Mobile 2003-based Smartphones
若开发简体中文程序它应该是Smartphone 2003 SDK Chinese Simplified Emulation Images.msi。它可以使你的模拟器具备显示中文的能力。
4、安装 Localized Emulation Images for Windows Mobile? 2003-based Smartphone
  对于Mobie设备开发而言,模拟器是非常重要的,它用来模拟真实的smartphone设备,让你能够在Windows桌面平台上调试验证你的程序而不需要连接到一个真实设备,在smartphone的sdk中已经包含了一个英文的模拟器,这里我们要安装的是一个简体中文的版本,安装文件是Smartphone 2003 SDK Chinese Simplified Emulation Images,它让我们可以在模拟器上显示中文内容。 www.shengfang.org


D:\ms\wince\sp2003 www.shengfang.org
Microsoft SMARTPHONE 2003 SDK.msi
D:\ms\wince\sp2003\Emulation
SP_2003_WWE.bin 12.5 MB (13,162,383 字节)
SP_2003_WWE_VIRTUAL_RADIO.bin 12.5 MB (13,167,539 字节)

中文化就很简单了,将中文的两个BIN文件复制到原来英文BIN文件目录,改名原英文BIN,将中文BIN改名为英文BIN名字 www.shengfang.org

如果没有先安装ACTIVESYNC,那么Microsoft Smartphone 2003 SDK会缺少一个快捷方式
Smartphone 2003 Emulator D:\ms\wince\sp2003\Emulation\emul.cmd Smartphone 2003 Emulator Link www.shengfang.org

start "" "C:\Program Files\Windows CE  Tools\Common\Platman\bin\PBEmulator.exe" /MemorySize 48 /Fastbackground /Skin "D:\ms\wince\sp2003\Emulation\smartphone_emulator_skin.xml" /CEImage "D:\ms\wince\sp2003\Emulation\SP_2003_WWE_VIRTUAL_RADIO.bin" /VMName "Smartphone 2003 - Smartphone 2003 Emulator" /HostKey 165

中文BIN的安装卸载是通过VBS脚本进行的
install_script.vbs www.shengfang.org
ON ERROR RESUME NEXT

regVSUILanguage     = "HKCU\Software\Microsoft\VisualStudio\7.1\General\UILanguage"
defaultVSUILanguage = "1033"

Dim objWshShell, strVSLocale
Dim objFSO, strVSXMLFilePath, objVSXMLFile, strNewVSXMLFilePath

Set WshShell = CreateObject("WScript.Shell")
strVSLocale = WshShell.RegRead(regVSUILanguage)

If StrComp(strVSLocale, defaultVSUILanguage, 1) <> 0 Then
   strAPPDATA = WshShell.ExpandEnvironmentStrings("%appdata%")
   intSlashIndex = InStrRev(strAPPDATA, "\", -1, 1)
   strApplicationDataDirectory = Right(strAPPDATA, Len(strAPPDATA) - intSlashIndex)

   strVSXMLFilePath = WshShell.ExpandEnvironmentStrings("%allusersprofile%") & _
    "\" & strApplicationDataDirectory & _
    "\microsoft\visualstudio\devices\addons\microsoft.smartphone2003.1.0.1033.xml"

   Set objFSO = CreateObject("Scripting.FileSystemObject")
   Set objVSXMLFile = objFSO.GetFile(strVSXMLFilePath)

   strNewVSXMLFilePath = WshShell.ExpandEnvironmentStrings("%allusersprofile%") & _
    "\" & strApplicationDataDirectory & _
    "\microsoft\visualstudio\devices\addons\microsoft.smartphone2003.1.0." & strVSLocale & ".xml"

   objVSXMLFile.Copy(strNewVSXMLFilePath)
End If

uninstall_script.vbs
ON ERROR RESUME NEXT www.shengfang.org

regVSUILanguage     = "HKCU\Software\Microsoft\VisualStudio\7.1\General\UILanguage"
defaultVSUILanguage = "1033"

Dim objWshShell, strVSLocale
Dim objFSO, strVSXMLFilePath, objNewVSXMLFile, strNewVSXMLFilePath

Set WshShell = CreateObject("WScript.Shell") www.shengfang.org
strVSLocale = WshShell.RegRead(regVSUILanguage)

If StrComp(strVSLocale, defaultVSUILanguage, 1) <> 0 Then
   strAPPDATA = WshShell.ExpandEnvironmentStrings("%appdata%")
   intSlashIndex = InStrRev(strAPPDATA, "\", -1, 1)
   strApplicationDataDirectory = Right(strAPPDATA, Len(strAPPDATA) - intSlashIndex)

   strNewVSXMLFilePath = WshShell.ExpandEnvironmentStrings("%allusersprofile%") & _
    "\" & strApplicationDataDirectory & _
    "\microsoft\visualstudio\devices\addons\microsoft.smartphone2003.1.0." & strVSLocale & ".xml"

   Set objFSO = CreateObject("Scripting.FileSystemObject")
   Set objNewVSXMLFile = objFSO.GetFile(strNewVSXMLFilePath)

   objNewVSXMLFile.Delete
End If www.shengfang.org

Windows Mobile 开发工具
1. Windows Mobile 2003 Second Edition 开发工具
      Windows Mobile开发分为使用本机代码和托管代码的开发,分别使用不同的开发工具:
      a. 使用本机代码是为了获得较高的性能,当您需要直接访问硬件或者资源有限的情况下使用。
      b. 使用托管代码是为了开发以用户界面为中心的应用程序,这种应用程序要求尽快面世或者要求开发速度很快。
Pocket PC 2003:
Smartphone 2003:

2. Windows Mobile 5.0 开发工具
      Visual C++ 2005环境中同时提供managed及native开发功能,将所有的开发工作将完全整合在同一环境中。Visual Studio.NET 2005默认提供了Pocket PC/Smartphone 2003 SE(第二版)的开发模板,同时将Pocket PC 2003 SE开发使用.NET CF版本升级到2.0 (beta)。
Windows Mobile 5.0 for Pocket PC:
Windows Mobile 5.0 for Smartphone:

3. 其他工具:
  除了上述基本开发工具以外,在Windows Mobile开发社区中还存在着大量的辅助工具,包括应用程序框架、工具、控件等等。其中有一些由于定位准确、制作优良、使用方便,已经成为Windows Mobile开发不可或缺的好助手。
  OpenNETCF.org Smart Device Framework


Windows Mobile 开发环境搭建
Windows Mobile 2003 Second Edition:
Windows Mobile 5.0:
  • a. 卸载所有旧版本的工具、SDK 和仿真器
    b. 安装ActiveSync3.8,如果您使用的是模拟器,还需安装Connect Emulator with ActiveSync
    c. 安装eMbedded Visual C++ 4.0 和 SP3
    d. 安装Visual Studio .NET 2003
    e. 安装PocketPC 2003 SDK或者Smartphone 2003 SDK
    f. 安装PocketPC或者Smartphone Emulator Image


字体:

Permanant URI永久地址 http://www.shengfang.org/blog/p/wincevsnetcnimg.php
Trackback URI引用地址 http://www.shengfang.org/blog/tb.php?tb_id=1128925880

2005年10月10日14:31星期一  [Dev开发] 追踪此文的RSS
提示:
此文还没有评论。

称呼:    登陆   注册
   不注册,但记住我的信息
邮件:
(非必须)
评论: [UBB代码帮助]
粗体 斜体 下划线 链接 水平线 引用



验证码: 请输入你看见的数字
关闭UBB      提交时自动将内容复制到剪贴板

公告





统计信息
[Yippee]||[统计]||日志:2143
在线: 9||用户: 2635 [列表]
今日:742||到访:3654527
Rss:||评论:1668

最新日志

最新评论

友情链接

日历
342009 - 0734
   1234
567891011
12131415161718
19202122232425
262728293031 

最新引用
搜索

归档

杂项
Get RSS Feed (Version 2.0)
Get Atom Feed (Version 0.3)
编码:  UTF-8