Hello,
During coding I split code in project into a different ".mq5" and ".mqh" files for clarity.
The problem is that functions which are placed in ".mq5" file other than main file are not displayed in suggested function list.
When I create header file ".mqh" for particullar ".mq5" file with functions declarations and when I include this ".mqh" file to project main ".mq5" file than function names are displayed in suggested function list, but there are warnings in compilation logs - "no #import declaration".
Do you know how any way to handle this without header file and function declarations or a way to disable those warnings?
MetaEditor feature description: "Auto substitution of function names"
My ME: MetaEditor 5.00 - b.3465 - 13.10.2022
Best Regards,
B

Intelligent management - Developing programs - MetaEditor Help
- www.metatrader5.com
For ease of programming, MetaEditor provides various tools from auto substitutions of names and tips to functions up to bookmarks and hot keys...
Files:
Screenshot_-_14.10.2022_b_13_46_31.png
5 kb
Screenshot_-_14.10.2022_k_13_47_51.png
11 kb
Screenshot_-_14.10.2022_l_13_54_45.png
24 kb
- Learning and writing together in MQL5
- Can't open include mqh file or Libraries
- Generating included code - Developing programs
I solved this problem by adding import declaration with ".mqh" filename:
#import "BarUtils.mq5" int ChartXYToBarIdx(int x, int y); void ChartXYToBarIdxAndPrice(int x, int y, int &barIdx, double &price); #import
and warnings disappeared.
Topic to close.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register