DLL differences

 

Hi, I'm trying to work with DLL's on MQL5. I use these just a little and I have some doubts about:

 Whatever DLL works with MQL5?

Is there any difference between DLL's writed in C++ or .NET for MQL5. If yes, how it works? 

Is there any kind of special complilation to use one DLL to work with a specific language?

Thanks. 

 
jonatas:

Hi, I'm trying to work with DLL's on MQL5. I use these just a little and I have some doubts about:

 Whatever DLL works with MQL5?

Is there any difference between DLL's writed in C++ or .NET for MQL5. If yes, how it works? 

Is there any kind of special complilation to use one DLL to work with a specific language?

Thanks. 

You can write a dll in .Net and export the functions required but it has to be a c++ mixed mode assembly (ie Managed/Unamanged code).  

 For example if you wanted to write your code in c# assemblies then you would need to create a mixed mode c++ assembly.  You would then define your export function in normal C++ in your function you could then invoke the classes in the # assembly. 

Reason: