![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
I have a library "Logger" that has its main function "Loggit"
This is code that comes from MT4:
#property library
#property copyright "Copyright 2011, Maieutic."
#property link "http://www.maieutic.com"
#property version "1.00"
#include <stderror.mqh>
string ErrorDescription(int errorcode);
#import
int FileHandle;
double counter;
string Filenamesave="";
int Loggit(string Func, string FileName, int handle, int Logging,int PrintLog,string p1,string p2="",string p3="",
string p4="",string p5="",string p6="",string p7="",string p8="",string p9="",string pa="")
{
-----
------
It is compiled to an "ex5"
I have it defined in my EA:
#import "Logger.ex5"
int Loggit(string Func, string FileName, int handle, int Logging,int PrintLog,string p1,string p2="",string p3="",
string p4="",string p5="",string p6="",string p7="",string p8="",string p9="",string pa="");
#import
When starting the EA I get:
Cannot find 'Loggit' in 'Logger.ex5'