在WinCE中提供了CecImport.exe命令行工具,可以將WinCE6.0以前所使用的.cec文件轉換成WinCE6.0中使用的.pbcxml文件。該工具可以在"/Windows CE Platform Builder/6.00/CEPB/IdeVS"目錄下面找到.
具體命令格式如下:
CecImport /target:pbcxml /winceroot:<winceroot> /output:<outputfilename> /version:<winceversion> <inputfile.cec>
/target: 該參數必須存在,表示輸出的文件類型,一般為pbcxml
/winceroot: 該參數必須存在,WinCE6.0的根路徑
/output: 該參數必須存在,輸出文件的文件名
/version: WinCE的版本
<inputfile.cec>: 該參數必須存在,要被轉換的cec文件
下面舉個例子,如下:
CecImport /target:pbcxml /winceroot:d:/WINCE600 /output:d:/smdk2410.pbcxml d:/smdk2410.cec
上面的命令表示將d:/根目錄下的smdk2410.cec文件轉換成smdk2410.pbcxml文件,轉換成功以后,命令行窗口中會有如下顯示:
Microsoft (R) Windows CE Platform Builder CecImport utility
Copyright (C) Microsoft Corporation. All rights reserved.
target=PbcXml
locale=804
winceroot=d:/wince600
overwrite=False
filename=d:/smdk2410.cec
output=d:/smdk2410.pbcxml
verbose=False
Import succeeded with 0 warning(s).
上面介紹了命令行工具CecImport.exe的使用方法,其實要轉換cec文件還有更簡單的方法,打開Visual Studio 2005,然后選擇"File"->"Open"->"File",直接打開一個cec文件,然后直接保存為pbcxml文件就可以了.
新聞熱點
疑難解答