Configure project#

The examples were made and tested by using Visual Studio 2019. The usage with other Visual Studio versions requires maybe modifications. In this example the 64-bit DLL is used (library: sof_cdb_w_dll.lib).

In the code examples, next functions are defined:

  • sof_cdb_init()

  • sof_cdb_get()

  • sof_cdb_close()

  • sof_cdb_flush()

  • sof_cdb_status()

Set up DLL functions#

An already defined project can be found by following:

C:\<sofistik_installation>\2024\SOFiSTiK 2024\interfaces\examples\c++\connect_to_cdb

Bellow you can find the description how to define the DLL functions. All functions are described in the CDBASE.CHM file.

Hint

In this example the Active(x64) platform is used.

Configure the project by following:

  • Click on Project Properties Configuration Manager.

../_images/step1.png
  • Set the project platform to 64-bit.

../_images/step2.png
  • Define the working directory of the project.

    C:\<sofistik_installation>\2024\SOFiSTiK 2024
    
../_images/step3.png
  • Set the additional include directories.

    C:\<sofistik_installation>\2024\SOFiSTiK 2024\interfaces\examples\c++
    
../_images/step4.png
  • Set the path for additional dependencies .LIB file and set it to:

    C:\<sofistik_installation>\2024\SOFiSTiK 2024\interfaces\64bit\sof_cdb_w_dll.lib
    
../_images/step5.png