Step 1: Create a Component (Windows Embedded Standard 2009)
4/23/2012
In this step, you will use Component Designer to create a component for a Hello World application.
- Create a new directory to store your component resources. For example, create C:\HelloWorld_Component.
- From the Windows Embedded Standard DVD, copy the HelloWorld.exe file from the Samples\Tutorial directory to the HelloWorld_Component directory.
- The HelloWorld.exe application requires the msvbvm60.dll library to run. This file is located in the C:\Windows\System32 directory on Windows XP Professional or Windows Vista systems. Copy this file to the HelloWorld_Component directory.
- Run Component Designer.
- From the File menu, click New.
A new document opens. - Expand the Windows Embedded Standard (x86) node in the left pane of the SLD browser.
- In the SLD browser, right-click Components, and then click Add Component.
The new component automatically expands in the SLD browser left pane. - In the SLD browser, right-click Repositories, and then choose Add Repository.
- In the Name textbox on the Repository Properties dialog, replace the default repository name with HelloRepository.
- In the Source Path dialog box, browse to C:\HelloWorld_Component and then click OK.
- In the SLD browser left pane, choose New Component. In the Name textbox on the Component Properties dialog, replace the default name with Hello World.
- Choose the Repositories button on the right side of the Repository box in the Component Properties dialog.
- In the Select Repository dialog box, select HelloRepository, and then click OK.
You have now created a component and associated it with a repository, which is the container for the files used in this tutorial. - In the SLD browser left pane, right-click Components, Hello World, and Files, and then click Add, and Files in Folder.
- In the Browse For Folder dialog box, locate and choose the HelloWorld_Component folder, and then click OK. When prompted if you want to continue, click Yes.
The Adding Resources dialog box appears. - When the Adding Resources dialog box displays the text "All resources were added successfully", click Close.
- To save the .sld file for your component, choose the File menu, and then click Save. Save the file as HelloWorld in a new folder named Tutorial located at the root directory.
You have now finished creating your component definition associated with a repository, and saved the information in an .sld file. - From the File menu, click Exit.
You are now ready to import the component into the component database.
See Also
Concepts
Step 2: Import the Component to the Database
Tutorial: Creating a Custom Component