Hu’s Blog

Just a blog

Archive for March, 2008

替换 Windows CE 的桌面

Thursday, March 13th, 2008
  1. 将自己写的程序拷贝到生成平台目录,如:拷贝 Myshell.exe 到
    D:\WINCE500\PBWorkspaces\SHELL_demo\RelDir\Emulator_x86_Release 下
  2. 修改 bib 文件,使程序加入到 最后生成的 bin中
  3. Platform Builder 5.0 下点击菜单 “Build OS” -> “Open Release Directory”,在弹出的 console 中 输入:
    notepad shell.reg

    也就是用记事本打开D:\WINCE500\PBWorkspaces\SHELL_demo\RelDir\Emulator_x86_Release 下的shell.reg 文件,进行编辑

  4. 编辑下面的一行,把 explorer.exe 修改成自己添加的程序。
    即把
  5. [HKEY_LOCAL_MACHINEinit]
     
    "Launch50"="explorer.exe"
     
    "Depend50"=hex:14,00, 1e,00

    改为:

    [HKEY_LOCAL_MACHINEinit]
     
    "Launch50"="MyShell.exe"
     
    "Depend50"=hex:14,00, 1e,00
  6. 保存 shell.reg 文件,回到 pb5,点击菜单
    “Build OS” -> “Make Run-Time Image”,即重新生成镜像文件,然后下载到模拟器或设
    备,这样就启动了自己的MyShell.exe,而没有桌面,任务栏等等

注意:1) MyShell 不能关闭,一点击退出按钮或菜单,就会死掉…

by  Zhanghu
2007/04/26

nk.bin 与 nk.nb0 的区别

Monday, March 10th, 2008

http://msdn.microsoft.com/chats/transcripts/mobileembedded/06_1129_msdn_wince.aspx

David Kelley [MS] (Expert):
Q: Which is the difference between the nk.nb0 and nk.bin image created by PB5.0?
A: .nb0 files is a raw file format suitable for flashing ROM via a ROM programmer while the .bin file is a MS format we use to download images to the device via the bootloader. In the end, same information, different formats.

要产生NK.NBx文件,你必须在Config.bib中设置ROMSIZE参数。
如ROMSIZE=02000000,设置NK.NB0的大小为32M,若Image的大小超过32M,则还会产生NK.NB1,NK.NB2……