|
Platform Source Libraries |
Top Previous Next |
Many projects make use of platform-specific reusable code libraries. This is a fancy way to say that if you have one project using DHCP (for example), you are likely to have another project also requiring DHCP.
In such a case, copying the DHCP code from project to project is not efficient. If you find (or the vendor of the DHCP library) find a bug in the code or create a better version of it, you would have to change it in each and every one of your projects.
A much better solution would be to use external code libraries, housed in the platform folder (rather than your project folder). This has been implemented in the form of the src folder, to be found in some of the platforms.
For example, the folder c:\Program Files\Tibbo\TIDE\Platforms\Em1206\src may contain a file called DHCP.tbs which is a library containing all DHCP-related code. You could then add it to your project and use it. Platform source libraries are automatically locked when added to your project.
Even after you add a library and call it from within your project, you could copy the project folder to any computer with the same TIDE version and it would work. The library could be automatically upgraded when a new TIDE version is installed.