把用EVC开发的应用程序集成到NK.BIN中

by Alpha 9. March 2009 17:13

是放在_flatreleasedir的目录下面的   吗?

------------------------

我是这样设置的:  
          1.   common.reg   文件中   [HKEY_LOCAL_MACHINE\init]   下添加   "Launch120"="base.exe"   (其中base.exe是EVC基于X86开发的);  
          2.在project.bib   文件中MODULES下添加   base2.exe     $(_FLATRELEASEDIR)\.exe     NK     语句   。  
          因为有上面.EXE文件不翼而飞的经历,在build   OS   选项中去掉了对   clean   before   building,以及copy   file   to   release   directory   after   build   的选择,直接选择Build   and   sysgen   ,成功后选make   run   time   image.  
            成功生成NK,但是下载到目标设备后,找不到加入的程序!不知道为何?  
            郁闷中,请各位指点迷津!

 

-------------------------

2.在project.bib   文件中MODULES下添加   base2.exe     $(_FLATRELEASEDIR)\.exe     NK     语句   。  
  应该是  
    base2.exe     $(_FLATRELEASEDIR)\base2.exe   NK

 

------------------------------------

在project.bib里直接加应该就可以了,以前加过动态库到project.bib里,差不多就这样,然后在CE里选择显示系统目录里的所有文件就可以看到你加的东西  
  To   add   a   desktop   shortcut   file   to   the   OS    
  Open   Project.bib   and   add   the   following   line   of   code   in   the   FILES   section    
  MyApp.LNK   $(_FLATRELEASEDIR)\MyApp.LNK   NK   S  
  To   add   a   desktop   shortcut   file   into   the   feature   tree,   follow   the   steps   in   Adding   a   File   to   an   Operating   System.    
  For   general   information   about   how   to   place   your   shortcut   into   your   platform's   file   system,   see   File   System   File.   For   a   step-by-step   example   of   how   to   perform   this   procedure,   see   Organizing   Files   Within   an   OS. 

 

------------------------------------

贴出MSDN上的方法,相关详细主题,还请参看MSDN  
  Adding   a   File   to   an   Operating   System  
  The   following   steps   describe   how   to   add   a   file   to   an   operating   system   (OS).   You   must   take   additional   action   if   you   want   your   file   compiled   by   the   build   engine   or   if   it   needs   to   be   processed   by   another   feature.   For   more   information,   see   Additions   to   a   Platform.    
  To   add   a   file   to   your   image    
  In   the   Workspace   view   of   Platform   Builder,   select   the   FeatureView   tab.    
  Right-click   the   topmost   node   of   the   platform   feature   tree,   named   <Platform   Name>   features,   and   choose   Insert   User   Feature.    
  The   Insert   User   Feature   dialog   box   appears.    
  In   the   User   Feature   File   box,   enter   the   complete   physical   path   for   the   file   to   be   added   to   your   platform.   You   cannot   use   such   environment   variable   names   as   %_WINCEROOT%   in   your   path.    
  -   or   -    
  Browse   for   the   file   you   wish   to   add   and   choose   OK   when   done.    
  The   default   file   filter   for   this   dialog   box   is   set   for   project   files.   Select   the   All   Files   filter   to   expose   all   of   the   files   on   your   system.    
  In   the   Insert   User   Feature   dialog   box,   choose   OK   when   done.    
  If   you   have   not   previously   added   other   user   features   to   your   platform,   a   new   User   features   node   appears   in   the   first   level   beneath   the   root   of   the   platform   feature   tree.    
  Expand   the   User   features   node   and   confirm   that   your   file   appears   under   it.

------------------------------------

在project.bib中加:       HD_DPTS.EXE             $(_FLATRELEASEDIR)\HD_DPTS.EXE               NK     S  
                                            HD_DPTS.lnk             $(_FLATRELEASEDIR)\HD_DPTS.lnk               NK     S  
  在project.dat中加:        
                  Directory("\Windows\Startup"):-File("HD_DPTS.lnk",   "\Windows\HD_DPTS.lnk")  
                  Directory("\Windows\桌面"):-File("HD_DPTS.lnk",   "\Windows\HD_DPTS.lnk")  
  要制作一个快捷方式:HD_DPTS.lnk,在Rebuilt完成后会报找不到文件错误,把   HD_DPTS.EXE   、HD_DPTS.lnk   复制到   _FLATRELEASEDIR   中再built就OK了!!

------------------------------------

 

------------------------------------

Tags: , Views:1282

WINCE

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen  浙ICP备09023819号  

关于作者

Alpha

1.男
2.已婚
3.网虫
4.宝宝叫yoyo

Calendar

<<  July 2010  >>
MondayTuesdayWednesdayThursdayFridaySaturdaySunday
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

View posts in large calendar

RecentComments

Comment RSS