---
title: "Working with C++ DLL (integration with MS Visual Studio) - Developing programs - MetaEditor Help"
description: "When developing trading programs on MQL4/MQL5, you can easily use third-party C++ DLLs. You can edit C++ source code files... - Working with C++ DLL (integration with MS Visual Studio) - Developing programs - MetaEditor Help"
image: "https://www.metatrader5.com/i/logo_metatrader5.png"
url: "https://www.metatrader5.com/en/metaeditor/help/development/c_dll"
---

[MetaEditor Help](https://www.metatrader5.com/en/metaeditor/help) → [Developing programs](https://www.metatrader5.com/en/metaeditor/help/development) → 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 C++ 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++](https://www.metatrader5.com/i/help/metaeditor/en/compile_dll.png)

> 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. To specify the compiler path manually, navigate to the [setting section](https://www.metatrader5.com/en/metaeditor/help/beginning/settings#compiler).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](https://www.metatrader5.com/en/metaeditor/help/workspace/navigator) window to an open MQ4, MQ5 or MQH file.

![Importing functions from DLL](https://www.metatrader5.com/i/help/metaeditor/en/dll_import.png)

## In this section

- [Intelligent management](https://www.metatrader5.com/en/metaeditor/help/development/intelligent_management)
- [Find and replace](https://www.metatrader5.com/en/metaeditor/help/development/source_code_find)
- [Styler](https://www.metatrader5.com/en/metaeditor/help/development/styler)
- [Compilation](https://www.metatrader5.com/en/metaeditor/help/development/compile)
- [MQL5 Cloud Protector: Advanced protection for programs](https://www.metatrader5.com/en/metaeditor/help/development/mql5_cloud_protector)
- [Code debugging](https://www.metatrader5.com/en/metaeditor/help/development/debug)
- [Code profiling](https://www.metatrader5.com/en/metaeditor/help/development/profiling)
- [AI Assistant](https://www.metatrader5.com/en/metaeditor/help/development/ai_assistant)
- [Generating included code](https://www.metatrader5.com/en/metaeditor/help/development/generate_mqh)
- Working with C++ DLL (integration with MS Visual Studio)
- [Working with Python](https://www.metatrader5.com/en/metaeditor/help/development/python)
- [OpenCL support](https://www.metatrader5.com/en/metaeditor/help/development/opencl)

```json
{"@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [ {"@type": "ListItem", "position": 1, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help", "name": "MetaEditor Help"}}, {"@type": "ListItem", "position": 2, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/development", "name": "Developing programs"}}, {"@type": "ListItem", "position": 3, "item": {"@id": "https://www.metatrader5.com/en/metaeditor/help/development/c_dll", "name": "Working with C++ DLL (integration with MS Visual Studio)"}} ]}
{ "@context": "https://schema.org", "@type": "FAQPage", "mainEntity": [{ "@type": "Question", "name": "MetaTrader 5: Working with C++ DLL (integration with MS Visual Studio)", "acceptedAnswer": { "@type": "Answer", "text": "When developing trading programs on MQL4/MQL5, you can easily use third-party C++ DLLs. You can edit C++ source code files (CPP and H) similarly to..." } }] }
```
