Skip to main content

Visual C++ Programmers Guide


The C++ API is a wrapper around the .NET engine. You can call this layer from standard (unmanaged) C++ code. However, you do have to have .NET, including the Microsoft J# extensions, installed. This layer requires no knowledge of C# or .NET.

Required Microsoft Hotfix

If you are using Visual Studio 2005, you must first install the Microsoft Visual C++ 2005 Service Pack 1

Using the Client

For an example of how to use the client take a look at the C++ Example.

Compiling Your Projects

To successfully compile a project which uses the C++ client you need two simple things (the installer does not add Windward to your include or lib environment variables so you need to add them or point directly to them):

  1. Include header file. You can include appropriate headers as required from the Include folder or you can include the main header file Include\WindwardReportsCPP.h which provides you with all functionality exposed by the client.

  2. Link with import library. You must link your project against the WindwardReportsCPP.lib import library which can be found in the Lib folder. There are two versions, Debug and Release. Just choose one as appropriate.

Run-Time Requirements

The following are are required to be placed in the same folder where is your executable file.

  1. Your compiled executable. Let's call it app.exe.

  2. Configuration file. It must be named after the name of the executable but with .config extension. So, if your executable's name is app.exe then configuration file must be named as app.exe.config.

  3. The configuration file should include your Windward Reports license. An example of the configuration file:

  4. WindwardReportsCPP.dll - the C++ wrapper.

  5. The .NET installation of Windward Reports. If you have Windward Reports components registered in the global assembly cache (GAC) you do not need to copy them to your project.

  6. vjsnativ.dll - Microsoft Visual J# class library native implementation. This is generally located at C:\Windows\Microsoft.NET\\Framework\v2.0.50727\vjsnativ.dll and needs to be copied to the directory your app.exe is run from. You can find the J# installers here.

  • Was this article helpful?