最简单的 让程序在windows ce启动后自动启动的办法

来源:互联网 发布:c语言register变量 编辑:程序博客网 时间:2024/05/16 20:28

方法有很多:

  • 修改注册表
  • 增加程序文件或程序文件链接到/windows/startup

 

我的方法是在/windows/startup中添加一个batch文件

 

startMyApp.bat:

 

rem "I willl start explorer"
start explorer.exe
rem "I willl start cerdisp"
start /Windows/cerdisp -c
rem "I willl start application"
start /bin/application.exe

 

该方法基本能用,但是有点小问题,不影响使用;

就是在启动的 时候的输出中有:

 

Debug Serial Init



SysInit: GDTBase=81656000 IDTBase=816623a0 KData=8165d800

Windows CE Kernel for i486 Built on Oct 20 2009 at 18:38:19

X86Init done, OEMAddressTable = 80222510, RAM mapped = 10000000.

Exception 'Access Violation' (14): Thread-Id=01890002(pth=8fde20e4), Proc-Id=00400002(pprc=8165f800) 'NK.EXE', VM-active=00400002(pprc=8165f800) 'NK.EXE'

PC=c0058ee2(k.coredll.dll+0x00038ee2) RA=c0032944(k.coredll.dll+0x00012944) SP=d25bf5cc, BVA=d2471008


原创粉丝点击