To post a new topic, please
login or register

Please help: C# DLL


Back to topics list
avatar
32
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
avatar
239
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
avatar
32
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
avatar
[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.
avatar
32
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.
Back to topics list   login or register