How to Exchange Data: A DLL for MQL5 in 10 Minutes
As a matter of fact, there are not many developers who remember exactly how to write a simple DLL library and what are features of binding different systems.
Using several examples, I will try to show the entire process of the simple DLL's creation in 10 minutes, as well as to discuss some technical details of our binding implementation. We will use Visual Studio 2005/2008; its Express versions are free and can be downloaded from the Microsoft website.
1. Creating a DLL project in C++ in Visual Studio 2005/2008
Run the Win32 Application Wizard using the 'File -> New' menu, select the project type as 'Visual C++', choose 'Win32 Console Application' template and define the project name (for example, 'MQL5DLLSamples'). Select a root directory for storing project 'Location', instead of the default offered one, disable the checkbox of 'Create directory for solution' and click 'OK':
Link interesante: http://www.mql5.com/en/articles/18
Marcadores