23.11.2012 Views

2 Visual Components Manuals

2 Visual Components Manuals

2 Visual Components Manuals

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Introduction to <strong>Visual</strong> <strong>Components</strong> 2.3<br />

To program in C, the necessary libraries must be added manually. For this, right click on the 'visu' C task that<br />

you inserted previously and select Insert File... from the shortcut menu.<br />

The 'Add C Files' dialog box appears again. To use Visapi library functions in our C task, the file 'libvisapi.a' and<br />

the header file 'visapi.h' must be added to the task.<br />

To find these files, switch from the CPU directory − where the 'visu.c' file is located − to three directories higher<br />

(with the icon in the dialog box). From here, change to the 'Library' directory and then to the 'visapi' directory.<br />

Depending on the type of CPU you are using, select the 'i386' directory (for Automation Runtime systems −<br />

IPC2000, IPC5000, and CP3xx) or the 'm68k' directory (for older CPU models).<br />

Mark both of the files named above and confirm with Add.<br />

4.2.3.4 Visapi − Tutorial − Preparing the C Example 269

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!