Modifying OS Design Configuration Files to Add Catalog Items (Windows CE 5.0)

To add a Catalog item to an OS design, you can modify OS design configuration files, which are source code configuration files or image configuration files.

To add a Catalog item to OS design configuration files

  1. Create a separate directory for the Catalog item.

    The following code example shows how to create the directory called MyComp.

    Note   If you modify a project directory created using the IDE, the IDE names a subdirectory WINCE500. Typically, manually created project directories do not contain a WINCE500 subdirectory.

    cd %_WINCEROOT%\Public\MyProj\wince500
    

mkdir Mycomp

  1. Copy the Catalog item files into this new directory.

    For information about Catalog item files, see Catalog Customization.

  2. Modify or create a dirs file in the MyProj\wince500 directory to include the Catalog item directory.

    The following code example shows a dirs file that includes the MyProj directory:

    DIRS = \
    

MyProj

  1. Create a sources file in the MyProj\wince500\MyComp directory to include the Catalog item code files.

    The following code example shows some macro variables that your Catalog item can use:

    TARGETNAME=MyComp
    

TARGETTYPE=PROGRAM TARGETLIBS=$(_COMMONSDKROOT)\lib$(_CPUINDPATH)\coredll.lib SOURCES=MyComp.c EXEENTRY=WinMain

  1. Create a makefile file in the MyProj\wince500\MyComp directory.

    The following code example shows the only executable line in the .mak file:

    !Include $(_MAKEENVROOT)\makefile.def
  2. Modify the Project.bib file in the MyProj\wince500\Oak\Files directory to include an entry for the executable file.

    The following code example shows a possible entry in the Project.bib file:

    MODULES
    

; Name Path Memory Type : ------------ -------------------------------------------------- mycomp.exe $(_FLATRELEASEDIR)\mycomp.exe NK S

This entry loads the Mycomp.exe output file in an area in memory called NK.

The file is loaded as a system file in the Windows CE run-time image.

If you want the functionality of the Catalog item to start at a particular time during startup, you must also modify the Project.reg file in the *MyProj*\\Wince500\\Oak\\Files directory.

See Also

Modifying an OS Design | Adding to an OS Design

Last updated on Thursday, February 02, 2006

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.