Change in ForexConnect Usage (Starting from Version 1.1.3)

From FxCodeBaseWiki
Jump to: navigation, search

Introduction

In the version 1.1.3, the order2go2 library and the Order2Go2.h header file were renamed ForexConnect and ForexConnect.h, respectively.

This is a breaking change that affects all ForexConnect C++ applications. Note that the change does not affect ForexConnect Java, .NET, and C applications.

The article discusses how to modify your current ForexConnect C++ project to use it with ForexConnect 1.1.3 or higher.

Common Change for All Platforms

There is a common change for projects on all platforms (Windows, Linux, Mac, etc.):

  • In header files, change #include Order2Go2.h to #include ForexConnect.h.

Change for Windows Projects

If your project is on the Windows platform, you should also do the following:

  • Change Order2Go2.lib to ForexConnect.lib. If you use Visual Studio, it can be changed in project properties -> Linker -> Input -> AdditionalDependencies.

Change for Linux and MacOS Projects

If your project is on the Linux or the Mac platforms, you should also do the following:

  • In the makefile, change -lOrder2Go2 to -lForexConnect.
  • In CMake, change
    target_link_libraries (${PROJECT} order2go2)
    to
    target_link_libraries (${PROJECT} ForexConnect)

This Article in Other Languages

Language: English  • español • français • русский • 中文 • 中文(繁體)‎