import c# dll

 

has anyone successfully imported a dll written in c#: visual studio 2005, visual studio 2008. visual studio 2010?

I can't seem to use the functions of the DLL written in c# VS2010?

Any suggestions??????

I searched the forum, and haven't found a solution.

Thanks

 
c0d3:

[...] I searched the forum, and haven't found a solution.

See https://www.mql5.com/en/forum/128634. There are quite a few other topics on the same subject, but this one includes a link to a step-by-step tutorial at http://www.codeguru.com/csharp/.net/cpp_managed/windowsservices/article.php/c14735/
 
jjc:
See https://www.mql5.com/en/forum/128634. There are quite a few other topics on the same subject, but this one includes a link to a step-by-step tutorial at http://www.codeguru.com/csharp/.net/cpp_managed/windowsservices/article.php/c14735/

Hey thanks, i found a similar method on the internet where you create dll with C++ and call C# dll functions, and after completing the steps, it works like a charm.


Thanks for the reply!!!

 
c0d3:

Hey thanks, i found a similar method on the internet where you create dll with C++ and call C# dll functions, and after completing the steps, it works like a charm.


Thanks for the reply!!!

Is there a chance that you share your dll and tell what the use of your dll is?

If I write a dll with C++, is it usable in very software with Meta (e.g. Buru)?

 
metafx:

Is there a chance that you share your dll and tell what the use of your dll is?

If I write a dll with C++, is it usable in very software with Meta (e.g. Buru)?

I can't share the DLL, it's developed for a prop trading firm. I can tell you what it does: the DLL works with a popular wall st trading platform via it's API to send orders to the equity market
 

By the way, there is an article Exposing C# code to MQL5 using unmanaged exports with desciption of pitfalls and some tricks in using of C# DLLs in MetaTrader.

See also How to Exchange Data: A DLL for MQL5 in 10 Minutes and Guide to writing a DLL for MQL5 in Delphi

 
Quantum:

By the way, there is an article Exposing C# code to MQL5 using unmanaged exports with desciption of pitfalls and some tricks in using of C# DLLs in MetaTrader.

See also How to Exchange Data: A DLL for MQL5 in 10 Minutes and Guide to writing a DLL for MQL5 in Delphi

Great links Quantum!
 
Quantum:

By the way, there is an article Exposing C# code to MQL5 using unmanaged exports with desciption of pitfalls and some tricks in using of C# DLLs in MetaTrader.

See also How to Exchange Data: A DLL for MQL5 in 10 Minutes and Guide to writing a DLL for MQL5 in Delphi


what a perfect links Quantum!!

I was searching for them for days , thank you so much! 

Reason: