Discussion of article "Library for easy and quick development of MetaTrader programs (part XX): Creating and storing program resources"

To add comments, please log in or register
MetaQuotes Software Corp.
Moderator
212229
MetaQuotes Software Corp.  

New article Library for easy and quick development of MetaTrader programs (part XX): Creating and storing program resources has been published:

The article deals with storing data in the program's source code and creating audio and graphical files out of them. When developing an application, we often need audio and images. The MQL language features several methods of using such data.

After compiling the EA, it displays file creation results in the journal, plays the falling coin sound and displays the LED picture consisting of two images in the lower right corner of the screen. You can switch images by clicking on the LED. In fact, this is a button having two states (on/off).



As we can see, everything works as it is supposed to. The messages about successful file generation appear in the journal, the LED changes its color when clicking on it, and if we open the terminal data folder (File --> Open Data Folder) and enter MQL5\Files\DoEasy\Resource\, we can see the Images and Sounds subfolders where all the newly created files are located.

Author: Artyom Trishkin

Artyom Trishkin
Artyom Trishkin
  • www.mql5.com
Trader's profile
To add comments, please log in or register