Книга: Microsoft Windows Embedded CE 6.0 Exam Preparation Kit

Public Tree Modification and Component Cloning

Public Tree Modification and Component Cloning

Once you have discovered that the code you want to modify resides in the %_WINCEROOT%Public folder, you might be tempted to modify this code in place and then build it without moving it to another folder first. However, there are a number of reasons not to modify the Public tree:

? You have to back up the Public directory and maintain separate directory versions for each of your OS design projects, such as WINCE600PUBLIC_Company1, WINCE600PUBLIC_Company2, and WINCE600PUBLIC_Backup.

? Windows Embedded CE updates, patches provided by quick fix engineering (QFE), and service packs might overwrite or be incompatible with your modifications.

? Redistributing your code is difficult and error-prone.

? Worst of all, when you change code in the Public directory tree, you have to spend up to three hours building the operating system. If you already know the CE build process so well that you can rebuild just your particular code without having to rebuild the entire Public folder, you will also already know enough to clone the components.

CAUTION

Public code modifications

Never modify the contents of the Public folder tree.

At a first glance, component cloning might seem like a lot of trouble, but it will save you development time and effort in the long run.

Оглавление книги


Генерация: 1.264. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз