I'm using VS2005 SP1 with PB 6.0 SP1. I needed to modify kitl_x86.c, which
is physically located in this folder on my workstation:

C:\WINCE600\PLATFORM\COMMON\src\x86\COMMON\kitl\kitl_x86.c

I tried to edit the file from within Platform Builder...I see the file in
the Solution Explorer tree, under:

Solution>OSDesign>C:/WINCE600>PLATFORM>COMMON>src>x86>COMMON>kitl>base>Sourc
e files

The file name is displayed as "../kitl_x86.c". I can edit the file in the
IDE, but I can't save it. As usual, I searched the online Microsoft
documentation for PB for 90 minutes, got a huge headache, lost my patience,
and then just used Notepad to edit and save the file directly. (It worked
like a charm!)

Presumably this is the wrong way to edit the file. What's the preferred
way? Do I need to somehow clone/copy this file to a "Private" folder in PB,
where I can make my tweaks, so that PB will know of my changes and then
build my tweaked copy into my OS image?

If you can point me at the MS documentation that actually explains how to do
this, that would suffice.

Thanks a heap,

David K

Re: How to "properly" modify a Core OS source code file in PB? by Michel

Michel
Thu Nov 01 17:00:23 PDT 2007

http://msdn2.microsoft.com/en-us/library/aa459163.aspx

and/or search the newsgroups for "clone" or "cloning"

Good luck,

Michel Verhagen, eMVP

GuruCE
http://GuruCE.com
Consultancy, training and development services.


David K in San Jose wrote:
> I'm using VS2005 SP1 with PB 6.0 SP1. I needed to modify kitl_x86.c, which
> is physically located in this folder on my workstation:
>
> C:\WINCE600\PLATFORM\COMMON\src\x86\COMMON\kitl\kitl_x86.c
>
> I tried to edit the file from within Platform Builder...I see the file in
> the Solution Explorer tree, under:
>
> Solution>OSDesign>C:/WINCE600>PLATFORM>COMMON>src>x86>COMMON>kitl>base>Sourc
> e files
>
> The file name is displayed as "../kitl_x86.c". I can edit the file in the
> IDE, but I can't save it. As usual, I searched the online Microsoft
> documentation for PB for 90 minutes, got a huge headache, lost my patience,
> and then just used Notepad to edit and save the file directly. (It worked
> like a charm!)
>
> Presumably this is the wrong way to edit the file. What's the preferred
> way? Do I need to somehow clone/copy this file to a "Private" folder in PB,
> where I can make my tweaks, so that PB will know of my changes and then
> build my tweaked copy into my OS image?
>
> If you can point me at the MS documentation that actually explains how to do
> this, that would suffice.
>
> Thanks a heap,
>
> David K
>
>

Re: How to "properly" modify a Core OS source code file in PB? by David

David
Thu Nov 01 17:12:41 PDT 2007

Dang, that's exactly the link I needed, thanks Michel!

Am I the only newbie who gets a huge headache trying to search for help in
Microsoft's online docs? I mean, a lot of the info there is useful stuff,
but I can never seem to find it efficiently.

I guess it's all about learning the Microsoft lingo... Being new to CE OS
development, and being just an occasional Windows app writer, I think it's
time I invest in a book. *gasp*

David K


"Michel Verhagen [eMVP]" <support@removethis.guruce.com> wrote in message
news:OOMEfNOHIHA.1548@TK2MSFTNGP05.phx.gbl...
> http://msdn2.microsoft.com/en-us/library/aa459163.aspx
>
> and/or search the newsgroups for "clone" or "cloning"
>
> Good luck,
>
> Michel Verhagen, eMVP
>
> GuruCE
> http://GuruCE.com
> Consultancy, training and development services.
>
>
> David K in San Jose wrote:
> > I'm using VS2005 SP1 with PB 6.0 SP1. I needed to modify kitl_x86.c,
which
> > is physically located in this folder on my workstation:
> >
> > C:\WINCE600\PLATFORM\COMMON\src\x86\COMMON\kitl\kitl_x86.c
> >
> > I tried to edit the file from within Platform Builder...I see the file
in
> > the Solution Explorer tree, under:
> >
> >
Solution>OSDesign>C:/WINCE600>PLATFORM>COMMON>src>x86>COMMON>kitl>base>Sourc
> > e files
> >
> > The file name is displayed as "../kitl_x86.c". I can edit the file in
the
> > IDE, but I can't save it. As usual, I searched the online Microsoft
> > documentation for PB for 90 minutes, got a huge headache, lost my
patience,
> > and then just used Notepad to edit and save the file directly. (It
worked
> > like a charm!)
> >
> > Presumably this is the wrong way to edit the file. What's the preferred
> > way? Do I need to somehow clone/copy this file to a "Private" folder in
PB,
> > where I can make my tweaks, so that PB will know of my changes and then
> > build my tweaked copy into my OS image?
> >
> > If you can point me at the MS documentation that actually explains how
to do
> > this, that would suffice.
> >
> > Thanks a heap,
> >
> > David K
> >
> >


Re: How to "properly" modify a Core OS source code file in PB? by David

David
Thu Nov 01 21:06:18 PDT 2007

Hi Michel,

After reading through the MSDN entry you pointed out, I found that it
applies to WinCE 4.2 (and possibly 5.0?), but it seems like the source code
directory structure is very different in CE 6.0. Do you know how those 4.2
folders would map to 6.0 folders? (I'm new to WinCE, so it's not easy for
me to tell how things have been moved around from version to version.)

I searched the windowsce newsgroups for "clone" and "cloning", but could not
find info regarding how to modify a single file within a BSP. Do I need to
clone the entire BSP, using the BSP Cloning tool, and then modify just the
one file I want to tweak?

Thanks,

David K

"Michel Verhagen [eMVP]" <support@removethis.guruce.com> wrote in message
news:OOMEfNOHIHA.1548@TK2MSFTNGP05.phx.gbl...
> http://msdn2.microsoft.com/en-us/library/aa459163.aspx
>
> and/or search the newsgroups for "clone" or "cloning"
>
> Good luck,
>
> Michel Verhagen, eMVP
>
> GuruCE
> http://GuruCE.com
> Consultancy, training and development services.
>


Re: How to "properly" modify a Core OS source code file in PB? by Dean

Dean
Fri Nov 02 06:20:16 PDT 2007

Same concepts apply. You shouldn't modify anything outside of your BSP.
The simple answer is that if it doesn't exist under
WINCEXXX\PLATFORM\<YourBSP> then you shouldn't touch it. If you need
something changed somewhere else, copy it to some reasonable location in
your BSP, modify it, and make sure your BSP links to your modified version
(probably a change to a sources file somewhere in your BSP). Normally you
would copy the entire component (typically the subdirectory containing the
file you want to change) and reference the new component.

--
Dean Ramsier - eMVP
BSQUARE Corporation


"David K in San Jose" <dk@spamBgone.com> wrote in message
news:uNOsSWQHIHA.2268@TK2MSFTNGP02.phx.gbl...
> Hi Michel,
>
> After reading through the MSDN entry you pointed out, I found that it
> applies to WinCE 4.2 (and possibly 5.0?), but it seems like the source
> code
> directory structure is very different in CE 6.0. Do you know how those
> 4.2
> folders would map to 6.0 folders? (I'm new to WinCE, so it's not easy for
> me to tell how things have been moved around from version to version.)
>
> I searched the windowsce newsgroups for "clone" and "cloning", but could
> not
> find info regarding how to modify a single file within a BSP. Do I need
> to
> clone the entire BSP, using the BSP Cloning tool, and then modify just the
> one file I want to tweak?
>
> Thanks,
>
> David K
>
> "Michel Verhagen [eMVP]" <support@removethis.guruce.com> wrote in message
> news:OOMEfNOHIHA.1548@TK2MSFTNGP05.phx.gbl...
>> http://msdn2.microsoft.com/en-us/library/aa459163.aspx
>>
>> and/or search the newsgroups for "clone" or "cloning"
>>
>> Good luck,
>>
>> Michel Verhagen, eMVP
>>
>> GuruCE
>> http://GuruCE.com
>> Consultancy, training and development services.
>>
>