Herd Software Development
DaVinci Graphics Library
DaVinci Documentation
Implementing DaVinci in C/C++
These simple instructions should be all you need to get up and running with the demo projects supplied with DaVinci.
C/C++ programmers
-
Add DaVinci’s installed directory to your INCLUDE path. The LIB files are installed to the LIB\BC45 directory in Borland C++ 4.5x and other 16 bit compilers, and to the LIB\MSVC for the 32 bit Microsoft compiler.
-
Add the following statements at or near the top of your application, but make sure these are added after your include statement for windows.h:
#include <davinci.h>
#include <leonardo.h>
-
Incorporate DAV3_32.LIB and LEON3_32.LIB into your project (or LEON3_16.LIB and DAV3_16.LIB if it’s a 16 bit project).
-
Create a button or menu item in your application for import and assign the appropriate code to this item in the program’s source. Call the ipImportInd function for importing graphics. You’ll find source for an ipImportInd demo application linked in the description of the function.
-
Create a button or menu item for export, and once again assign the appropriate code to this item. Call ipExportInd for graphics export.