Add an application in the wince Start Menu

Source: Internet
Author: User

Author: arm-WinCE

 

Adding an application to the Start Menu of Wince should be a common function. During product customization, add the application of this product to startmenu, so that users can easily start the program, the following is an introduction:

 

Let's talk about the principle first. In fact, after wince is started, click Start and then click programs. All the applications that can be seen in it are actually stored in the form of files, they are stored in the/Windows/programs directory and are all shortcut files. These shortcut files are connected to real applications, which is so simple.

 

After understanding this principle, you can understand how to do it. The steps are as follows:

1. Change the project. bib file and add the application. Here, Hello, world is used as an example:

Hello.exe D:/wince600/osdesigns/emulator/reldir/deviceemulator_armv4i_release/hello.exe NK s

 

2. Create a shortcut file for the application. You can create a *. txt file and add the following content to it:18 #/Windows/hello.exe, Where 18 indicates the number of characters next to it, close the TXT file, rename it as hello. lnk, and copy the file to the release directory of the wince project.

 

3. Change the project. bib file, including the hello. lnk file, as shown below:

Hello. lnk D:/wince600/osdesigns/emulator/reldir/deviceemulator_armv4i_release/Hello. lnk NK sh

 

4. Open the project. dat file and locate hello. lnk in the/Windows/programs directory, as shown below:

Directory ("/Windows/programs"):-file ("Hello. lnk", "/Windows/Hello. lnk ")

 

5. Copy project. dat and project. bib to the project's release directory, and then makimge.

 

When running wince, you can see that the application has been added to the programs of startmenu,

Through this example, we can see that the files contained in bib will be stored in the/Windows Directory of the wince system after makeimg, you can change the DAT file to redirect them to another folder. You can add a program to programs in this way, but if you want to change startmenu itself, you need to change the source code, in/wince600/public/Shell/oak/HPC/Explorer/taskbar/stmenu. CPP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.