I have not done it yet, but have you seen the #import command? I think there are samples there.
Markus
Markus
Thanks,
Yes, I'm familiar with #import.
I used it to #import library built by MQ4, but not to import library written in C#.
C and C++ DLLs (unmanaged code) can be accessed by MetaTrader, but not sure C# DLL (managed code) can be used directly.
Any reply from MetaTrader's tech team will be appreciated.
Ruby
Yes, I'm familiar with #import.
I used it to #import library built by MQ4, but not to import library written in C#.
C and C++ DLLs (unmanaged code) can be accessed by MetaTrader, but not sure C# DLL (managed code) can be used directly.
Any reply from MetaTrader's tech team will be appreciated.
Ruby
It is imposible to call .NET dll's functions from unmanaged code.
There is only one way: writing wrapper dll using managed C++, where you can mix managed and unmanaged code.
There is only one way: writing wrapper dll using managed C++, where you can mix managed and unmanaged code.
Thanks George, I guess I'll have to do it the way you suggested above.

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
Is it possible to call from MetaTrader EA to external dll library written in .NET (C#)?
Is there any example for passing arrays and other parameters to that external DLL?
What about passing arrays by reference to C# dll?
Thanks
Ruby