Help! MY helllo world component can not be imported?

L

Larry

Hi, my friends
I'm learning Windows XP embedded.

I wrote a small program "Hello World" using VC70 (not dot net). I compile it
and put it in E:\Hello World.

I also copyed mfc71.dll and msvcr71.dll to the folder.

I want to add this samll application to my run time image.

In Component Desinger I create a new Repository named "HelloRepository",
which source path is "E:\Hello World"

Then created a new component named "Hello World " and I select
"HelloRepository" in Repositories. I also added files from e:\Hello World.

After I saved it as "Hello World " component and tried to inport it to
component database. There is an error message : "Cannot import SLD file. The
filename, irectory name or volume label syntax is incorrect."

What's wrong with it? I checked my folder and file name, noting is wrong.

I need your help.

Best regards,

Larry
 
K

Kesavan

Larry,

You might need to create a Repository in the Component Designer in
additon to copying the files to the folder and provide the path for
that folder in there.Now you need to select the Repository name in the
Component tab.


HTH,
kesavan
 
L

Lynda Allen [MS]

Larry,

Try the following steps for creating a package and repository for your
component. The trick is to not hard-code the repository path but to try
maintain relative relationships.
1.. In your working directory create two folders. Call one "Rep" - this is
where you will place all the driver's files you identified - and the other
"SLD" - this is where your component will reside.
2.. Create a package object by right-clicking on the Packages node,
choosing "Add Package" and filling out an appropriate name and description.
3.. Create a repository object by right-clicking on the repositories node,
choosing "Add Repository" and filling out an appropriate name and
description. Also set the "Source Path" to the repository files by clicking
the "Browse" button and navigating to the "Rep" folder you created in your
working directory - this will add the relative path to your component's
repository.
4.. For each component within the SLD, set a reference to the repository
object by clicking the "Repository" button, and browsing to the repository
object you created. In addition, expand each component, right-click on Group
Memberships, drill down to the package object you created and add it.
5.. Once this is complete save the SLD to the "SLD" folder in your working
directory, and use Database Manager to import the SLD into your database for
inclusion in a runtime configuration. When importing to the database ensure
the default,"Copy repository files to repository" checkbox, is checked
Hope this helps,

Lynda

"This posting is provided "AS IS" with no warranties, and confers no rights"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top