MT4: How can I secure my EA using DLL files ?

 
What syntax can I input in DLL file and how to create my own DLL file in Meta Trader 4 ? Can I use Meta Editor for it ?
 
puncher:
What syntax can I input in DLL file and how to create my own DLL file in Meta Trader 4 ? Can I use Meta Editor for it ?

You already asked this question and it was already answered -> https://www.mql5.com/en/forum/124143. These questions have been answered many times in the forum (for example -> https://www.mql5.com/en/forum/119371) so please search.

 
gordon:

You already asked this question and it was already answered -> https://www.mql5.com/en/forum/124143. These questions have been answered many times in the forum (for example -> https://www.mql5.com/en/forum/119371) so please search.


ok gordon, but it is still not clear for me - because I don't know what compiler can use for writing DLL file... can I use Meta Editor for it ?
 
puncher:

ok gordon, but it is still not clear for me - because I don't know what compiler can use for writing DLL file... can I use Meta Editor for it ?
no, use a c/c++ compiler if you want to code in c. 7bit recommends always to use Lazarus, but i have no experience with this one. but also delphi visual basic and shurely many other languages supports dll's.
 
puncher:

ok gordon, but it is still not clear for me - because I don't know what compiler can use for writing DLL file... can I use Meta Editor for it ?

Technically, you can use MetaEditor to edit any text file, which means u can u use it to edit source files for any programming language. But MetaLang.exe which is the compiler used by MetaEditor can only compile MQL4 source code.

So you will need a different compiler for your DLL depending on the language u choose to write it in. If you really want to use MetaEditor to edit the source files u can still do that, but there is no point - it would be much more convenient to use an IDE intended for that language or use a configurable text editor that can use any external compiler (such as TextPad or NotePad++).

Regarding which languages can be used to write the DLL, see jjc's answer in the thread I mentioned -> https://www.mql5.com/en/forum/119371.

 
gordon:

Technically, you can use MetaEditor to edit any text file, which means u can u use it to edit source files for any programming language. But MetaLang.exe which is the compiler used by MetaEditor can only compile MQL4 source code.

So you will need a different compiler for your DLL depending on the language u choose to write it in. If you really want to use MetaEditor to edit the source files u can still do that, but there is no point - it would be much more convenient to use an IDE intended for that language or use a configurable text editor that can use any external compiler (such as TextPad or NotePad++).

Regarding which languages can be used to write the DLL, see jjc's answer in the thread I mentioned -> https://www.mql5.com/en/forum/119371.


many thanks again
 
 
gordon:

Technically, you can use MetaEditor to edit any text file, which means u can u use it to edit source files for any programming language. But MetaLang.exe which is the compiler used by MetaEditor can only compile MQL4 source code.

So you will need a different compiler for your DLL depending on the language u choose to write it in. If you really want to use MetaEditor to edit the source files u can still do that, but there is no point - it would be much more convenient to use an IDE intended for that language or use a configurable text editor that can use any external compiler (such as TextPad or NotePad++).

Regarding which languages can be used to write the DLL, see jjc's answer in the thread I mentioned -> https://www.mql5.com/en/forum/119371.

I use Visual C++2010 for build DLL. But I do not know what can I program on DLL (for Meta Editor) and how to call compiled in DLL file function from Meta Editor ?