PC Review Forums Newsgroups Windows XP Windows XP Embedded Help! MY helllo world component can not be imported?

Reply

Help! MY helllo world component can not be imported?

 
Thread Tools Rate Thread
Old 14-10-2003, 06:33 PM   #1
Larry
Guest
 
Posts: n/a
Default Help! MY helllo world component can not be imported?


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


  Reply With Quote
Old 15-10-2003, 06:16 AM   #2
Kesavan
Guest
 
Posts: n/a
Default Re: Help! MY helllo world component can not be imported?

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

"Larry" <lchang@andec.ca> wrote in message news:<voocqk68qdd031@corp.supernews.com>...
> 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

  Reply With Quote
Old 17-10-2003, 02:14 AM   #3
Lynda Allen [MS]
Guest
 
Posts: n/a
Default Re: Help! MY helllo world component can not be imported?

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"
"Larry" <lchang@andec.ca> wrote in message
news:voocqk68qdd031@corp.supernews.com...
> 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
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off