Can anyone advise me on this error?
You are a genius. I tried the print infile.read and it could not find it although I could clearly see it was there. I played with the permissions but got no where. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
I have built a set of common functions that I’m going to call in all my own indicators.
Instead of recoding each function in every indicator, I put them all in a Library and now I’m trying to import the library and the functions in the indicator.
It compiles successfully. But, as soon as I run the indicator on a chart, I get the error in the Expert Log (and the indicator won’t draw):
cannot load library MyLib.mq4' (error 193)
What I’ve already checked is:
. Tools/Options/Expert Advisors tab: The flag “Allow DLL imports” is checked to true.
. When I drop the indicator on the Chart and the property dialog appears, on the Common tab, the “Allow DLL imports” is checked to true.
.The #import statement is coded with the fully qualified path to the library:
#import 'C:UsersSteAppDataLocalVirtualStoreProgram Files (x86)MetaTraderexpertslibrariesSP_Lib.mq4'
int MyFunc(int value,int value2);
Any clue?
Thank you very much in advance.
Cheers
Stefano