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

 

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
Reason: