Aide MetaEditor

Working with C++ DLL (integration with MS Visual Studio)

Working with C++ DLL (integration with MS Visual Studio)

When developing trading programs on MQL4/MQL5, you can easily use third-party C++ DLLs. You can edit С++ source code files (CPP and H) similarly to MQ4, MQ5 and MQH ones. These files in DLL can also be compiled directly from the editor. Microsoft Visual Studio installed on user's PC can be used for that. To compile, open the C++ file and press F7 (Compile command).

Working with DLLs on C++

  • MS Visual Studio compiler installed on a user's PC is used for compiling C++ source codes. MS Visual Studio 2008 and higher (including Express and Community versions) are supported.
  • MS Visual Studio version (32 or 64-bit) should match MetaEditor version.

MetaEditor also provides the ability to easily add exported DLL functions to MQL4/MQL5 file. Simply drag a DLL file from the Navigator window to an open MQ4, MQ5 or MQH file.

Importing functions from DLL