C/C++ Interface

The C/C++ Interface makes it possible to integrate Office Server Document Converter V7.1 into C/C++ programs.

Header files

The following header files are included in [Install directory]/include.

Header file Contents Location
dfvifc.hHeader for C++ [Install directory]/include
dfvifc_c.hHeader for C

Library files

The following library files are included in [Install directory]/lib or [Install directory]/lib.

Library file Contents Location
DfvInterface.dllC/C++ Interface Library for Windows [Install directory]
libDfvInterface.soC/C++ Interface Library for Linux [Install directory]/lib

In the Windows version the following library file for link is included in [Install directory]/lib.

Library file Contents Location
DfvInterface.libLibrary for DLL linking [Install directory]/lib

Compiler issues


Office Server Document Converter V7.1 Windows version is built using Microsoft Visual C++ 2015. MFC is not used. Please use a compatible compiler for your program.


Office Server Document Converter V7.1 Linux and Linux 64-bit version is built using GCC 4.8. Your program must be compiled using GCC 4.8 or later. For more detailed information about GCC, see “GCC, the GNU Compiler Collection”.

Building the sample programs

[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.

> cd [Install directory]/samples/cpp > cl -GX -I ..\..\include sample.cpp ..\..\lib\DfvInterface.lib /MT

In order to build a sample for Windows x64 version with the command line of Visual C++, execute the compiler from the console as follows.

> cd [Install directory]/samples/cpp > cl -EHsc -I ..\..\include sample.cpp ..\..\lib\DfvInterface.lib /MT

To build the executables for Windows x64 version, use the console window from [Start]-[Microsoft Visual Studio 2015]-[Visual Studio Tools]-[Visual Studio 2015 x64 Cross Tools Command Prompt].

[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.

$ cd [Install directory]/samples/cpp $ LD_LIBRARY_PATH=../../lib:${LD_LIBRARY_PATH} $ export LD_LIBRARY_PATH $ g++ sample.cpp -I../include -L../lib -lDfvInterface -oSamplecppcmd -lstdc++ -lpthread

In order to execute the built sample program, a setup of other environment variables is necessary. see Environment Variables and Symbolic Links for more details.

As mentioned previous, the GCC version is very important. Please check your GCC version using --version command-line option.

$ g++ --version g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

API Specification

See the document that was generated by Doxygen.