17.05.2014 Views

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

PDFlib 8 Windows COM/.NET Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

2 <strong>PDFlib</strong> Language Bindings<br />

Note It is strongly recommended to take a look at the starter examples which are contained in all<br />

<strong>PDFlib</strong> packages. They provide a convenient starting point for your own application development,<br />

and cover many important aspects of <strong>PDFlib</strong> programming.<br />

2.1 Data Types for Language Bindings<br />

In general all development environments have access to <strong>PDFlib</strong> routines in the same<br />

way. In some cases you should be aware of language-specific data types used for <strong>PDFlib</strong><br />

function parameters. In particular, the data types used for strings and binary data may<br />

differ slightly. Table 2.1 lists useful information about these data types.<br />

Table 2.1 Data types in the language bindings<br />

environment string data type binary data type<br />

<strong>COM</strong> in general BSTR (string) variant of type VT_ARRAY | VT_UI1 1<br />

Delphi with <strong>COM</strong> String (for 8-bit encodings) or WideString (for Unicode) OleVariant<br />

.<strong>NET</strong> String byte[ ]<br />

REALbasic string MemoryBlock<br />

1. In other words, a variant array of unsigned bytes.<br />

2.1 Data Types for Language Bindings 27

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

Saved successfully!

Ooh no, something went wrong!