C++ Interface

The C++ Interface makes it possible to integrate Word API V0.5 into C++ programs.

Header files

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

Header file Contents Location
DocxManagerError.h Header for C++ [Install directory]/include
DocxManagerErrorCode.h
IDataMerger.h
DataMergeParams.h
SimpleTypeParameter.h
CompoundTypeParameter.h
NestedTableTypeParameter.h
IExternalDataManager.h
ExternalDataManagerParams.h
UnlinkedGroupDocsParameter.h
ICompareDocuments.h
ChangedRatio.h
IDocumentForm.h
FormData.h
ParagraphFormData.h
TableFormData.h
IInspectDocument.h

Library files

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

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

Compiler issues

Windows

Word API V0.5 is built using Microsoft Visual C++ 2019. MFC is not used. Please use a compatible compiler for your program.

Building the sample programs

[Install directory]/samples/cpp includes some simple sample programs.

Windows

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 -EHsc -I ..\..\include sample.cpp ..\..\lib\AHOOXMLDocxManagerCppCtl.lib /MT /link -LTCG

To build the executables for Windows, use the command prompt from [Start]-[Microsoft Visual Studio]-[Visual Studio Tools].

[Install directory]/lib must be appended to the PATH environment variable in order to execute this program. The sample executes as follows.

API Specification

See the document that was generated by Doxygen.