This forum is now read-only. You can discuss you questions on Forums of MQL4.community and MQL5.community
Please help: C# DLLBack to topics list |
|
Ruby
2005.09.01 20:12
Hey,
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 |
|
Shimodax
2005.09.01 20:30
I have not done it yet, but have you seen the #import command? I think there are samples there. Markus |
|
Ruby
2005.09.01 23:30
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 |
|
[deleted]
2005.09.02 18:36
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. |
|
Ruby
2005.09.02 21:39
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. Thanks George, I guess I'll have to do it the way you suggested above. |
