|
PV Tools: PV Add-In Toolkit for C++BuilderX1. IntroductionPV Add-In Toolkit is a collection of tools that simplify creating Add-Ins for PV and provides integration for the C++BuilderX IDE. It consists of the following components:
PVBUILD interacts with the compilers and make programs of both PV SDKs so it is not necessary to work with makefiles directly. (If you want to change the makefile by hand, disable the "Generate Makefile" option. PVBUILD then implies the existance of a makefile.) The toolset definition is integrated into the Borland Toolset so Code Insight can be used. AddInWiz.jar provides five wizards (New Add-In, New Library, New Source File, New Header File, Add Library) and a PV2-SDKEN03 simulator runtime configuration that simplify creating, managing and debugging of PV applications. 2. Download and InstallationDownload:
Requirements:
3. OverviewThe functionality of PV Add-In Toolkit is demonstrated in the following. First, let's create a project group: The gallery wizards added by AddInWiz.jar show up here: The "New Add-In" wizard creates a new Add-In project in the directory of the PV2-SDKEN03. If available, it can be added to the active project group. A new project created with the wizard looks like this. Two header files and a .c file that contains the main() function are generated automatically. Code Insight or Member Insight (after . und
->) can be invoked by pressing Ctrl+Space:
In addition, Parameter Insight can be invoked by pressing Ctrl+Shift+Space: Now let's build our program using the PV2-SDKEN03 by clicking "Make Program". At the push of a button, the program also compiles with the PV-S1600-SDK: By clicking "Debug program", we start the simulator. The program and the debug symbols are loaded automatically. Now, we can debug the program using the possibilities of the simulator debugger (I assume you to be able to handle a debugger). This is the output of our first Add-In: Let's create a library that exports a function we want to use in our program: We add declaration and definition of a function to library.h and library.c. After renaming the file and building the library, we select the MyAddIn project again: Now we add the library to our project using the wizard at "Wizards|PocketViewer|Add Library": The library header file must be #included (it has been copied to the library header directory of the PV SDK) so we cann call the functions it provides: Error and warning messages by compiler or linker are parsed by the IDE so that it is possible to jump to the error by just clicking on the message. That does also work with the PV-S1600-SDK: The PVBUILD call parameters can be adjusted in the Build Options Explorer ("Project|Build Options Explorer..."): 4. DocumentationThe SDK documentation can be found in the \DOC subdirectory of the SDK directory, mostly as PDF files. Since PDF is not the optimal format for a reference, I recommend this help file that is laid out much better:
|