The C/C++ Interface makes it possible to integrate Office Server Document Converter V11.0 into C/C++ programs.
The following header files are included in [Install directory]/include.
Header file | Contents | Location |
---|---|---|
dfvifc.h | Header for C++ | [Install directory]/include |
dfvifc_c.h | Header for C |
The following library files are included in [Install directory]/lib or [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
DfvInterface.dll | C/C++ Interface Library for Windows | [Install directory] |
libDfvInterface.so | C/C++ Interface Library for Linux | [Install directory]/lib |
In Windows versions, the following library file for link is included in [Install directory]/lib.
Library file | Contents | Location |
---|---|---|
DfvInterface.lib | Library for DLL linking | [Install directory]/lib |
Office Server Document Converter V11.0 Windows versions are built using Microsoft Visual C++ 2022. MFC is not used. Use a compatible compiler for your program.
Office Server Document Converter V11.0 Linux 64-bit version is built using GCC 11. Your program must be compiled using GCC 11 or later. For more detailed information about GCC, see “GCC, the GNU Compiler Collection”.
[Install directory]/samples/cpp and [Install directory]/samples/c includes some simple sample programs.
In order to build a sample with the command line of Visual C++ in the Windows environment, execute the compiler from the console as follows:
[Install directory]/lib must be appended to the PATH environment variable in order to execute this program. The sample executes as follows:
The following command-line shows how to build the sample in the Linux environment using GCC.
In order to execute the built sample program, a setup of other environment variables is necessary. For more details, see Environment Variables and Symbolic Links.
As mentioned previous, the GCC version is very important. Check your GCC version using the --version command-line option.