Skip to content

Sygic/sygic-professional-sdk-cpp-demo-win

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ApplicationAPI Integration Guide

πŸ“‚ Files needed

  • ApplicationAPI.dll – The main dynamic library.
  • ApplicationAPI.lib – Import library for linking.
  • sdkdriver.dll - Communication with Drive app.
  • ApplicationAPI.h – Header file with function declarations.

πŸ“Œ Overview

This project demonstrates how to integrate and use ApplicationAPI.dll in a C++ application using Visual Studio 2022.

The project is structured as follows:

/InitApiDemo
│── /InitApiDemo        # Project directory
β”‚    β”œβ”€β”€ /include       # Header files
β”‚    β”‚    β”œβ”€β”€ ApplicationAPI.h
β”‚    β”‚
β”‚    β”œβ”€β”€ /lib           # Library files
β”‚    β”‚    β”œβ”€β”€ ApplicationAPI.dll
β”‚    β”‚    β”œβ”€β”€ ApplicationAPI.lib
β”‚    β”‚    β”œβ”€β”€ sdkdriver.lib
β”‚    β”‚
β”‚    β”œβ”€β”€ main.cpp
β”‚    β”œβ”€β”€ pch.cpp
β”‚    β”œβ”€β”€ pch.h
β”‚    β”‚
β”‚    β”œβ”€β”€ InitApiDemo.vcxproj  # Project file
β”‚
│── InitApiDemo.sln     # Solution file
│── README.md           # This guide

πŸ›  Setup Instructions

1️⃣ Project Configuration

  1. Open Visual Studio 2022 and load the project (.sln file) or create a new C++ console application.
  2. Place library files (.dll, .lib, .h) into proper folders (lib, include).
  3. Configure Include Directories:
    • Go to: Project Properties β†’ C/C++ β†’ General β†’ Additional Include Directories
    • Add: $(ProjectDir)include
  4. Configure Library Directories:
    • Go to: Project Properties β†’ Linker β†’ General β†’ Additional Library Directories
    • Add: $(ProjectDir)lib
  5. Link Against ApplicationAPI.lib:
    • Go to: Project Properties β†’ Linker β†’ Input β†’ Additional Dependencies
    • Add: ApplicationAPI.lib

2️⃣ Post-Build Event (Copy DLL Automatically)

To ensure ApplicationAPI.dll and sdkdriver.dll are always placed next to the executable:

  1. Go to: Project Properties β†’ Build Events β†’ Post-Build Event β†’ Command Line
  2. Add the following command:
    xcopy /Y "$(ProjectDir)lib\ApplicationAPI.dll" "$(OutDir)"
    xcopy /Y "$(ProjectDir)lib\sdkdriver.dll" "$(OutDir)"
    • This copies ApplicationAPI.dll and sdkdriver.dll to the output directory after building.

3️⃣ Build & Run

  • Build the project (Ctrl + Shift + B).
  • Run the executable (F5 or Ctrl + F5).

πŸ” Troubleshooting

❌ ApplicationAPI.dll was not found

  • Ensure ApplicationAPI.dll exists in the /lib folder.
  • Run a clean build (Rebuild Solution).
  • Manually copy ApplicationAPI.dll to the output folder.

❌ sdkdriver.dll was not found

  • Ensure sdkdriver.dll exists in the /lib folder.
  • Run a clean build (Rebuild Solution).
  • Manually copy sdkdriver.dll to the output folder.

❌ Linker error: unresolved external symbol

  • Verify that ApplicationAPI.lib is added to Additional Dependencies.
  • Check that ApplicationAPI.h is included in the source file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages