Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 641

 
Sergey Maksiutenko:

The files are in the appropriate folders.

What's the problem?

Ohhh,,,,, sorry.

I hate to bang on the keys.

Learn what a include file is and what a library is.

 
Sergey Maksiutenko:

The files are in the appropriate folders.

What's the problem?

Strange way of communicating...

Guys the question remains open :

Please help to understand the connection of the library .MQH

 
Alekseu Fedotov:

Ohhh,,,,, sorry.

I really hate to bang on the keys.

Learn what a include file is and what a library is.

If you don't want to bang (unless of course there is something to bang) stay out of the dialogue

 
Alexey Viktorov:

What's not working? Does it overwrite the first lines? You have to move the pointer to the end of SEEK_END after opening the file.

Thank you very much! Stupid! I thought for some reason that the position should be set in the FileOpen function. But it's working now!
 
Sergey Maksiutenko:

The files are in the appropriate folders.

What's the problem?

The problem is that calc function in my_func.mq4 library needs to be declared as exportable from other applications. Read the doc, it says it all very well!
 
Vitaly Gorbunov:
The problem is that calc function in my_func.mq4 library needs to be declared as exportable from other applications (export). Read the doc, it says it all very well!

Describe by example, give a concrete link, something.

This is the first time I've heard of exportable (importable I know) functions.

The "declare as exportable" linkgoes to

Japan Exports y/y.

Here the man makes it simple https://www.youtube.com/watch?v=EPQmtsu5SwU

I copy everything, it works for him, it doesn't for me.

What's the problem?

 
Sergey Maksiutenko:

Describe by example, give a concrete link, something.

This is the first time I've heard of exportable (importable I know) functions.

The "declare as exportable" linkgoes to

Japan Exports y/y.

Here the man makes it simple https://www.youtube.com/watch?v=EPQmtsu5SwU

I copy everything, it works for him, it doesn't for me.

What's the problem?

https://www.mql5.com/ru/docs/basis/function/export Is that clear?

If not, read here search for exporthttps://docs.mql4.com/ru/mql4changes

Also herehttps://docs.mql4.com/ru/basis/function/export

Документация по MQL5: Основы языка / Функции / Экспортирование функций
Документация по MQL5: Основы языка / Функции / Экспортирование функций
  • www.mql5.com
Данный модификатор указывает компилятору внести функцию в таблицу EX5-функций, экспортируемых данным исполняемым ex5-файлом. Только функции с таким модификатором становятся доступными ("видимыми") из других mql5-программ.
 

We are talking about programs in MQL4

 
Sergey Maksiutenko:

We are talking about programmes in MQL4

I gave above links to mql4, there is no difference! If you do not understand, I do not even know how to explain!
 
Sergey Maksiutenko:

What is the problem?

The problem is understanding what a include file is and what a library is.

The compiler "snatches" the used parts from the .mqh file and compiles an executable that will work in the absence of the .mqh file.

The library must be present on all computers that will be using a program that refers to the library. This is very inconvenient and few people use it, I do not know them.

I recommend to forget about the libraries and to understand the included files.

Reason: