|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack (1) | Thread Tools | Display Modes |
|
|||
|
.Net DLL wrapper
If anyone can help create a .Net DLL wrapper for MetaQuotes I would be greatly appreciative.
http://www.metaquotes.net/forum/997/ Thanks |
|
|||
|
One thing - I do not think it is impossible to call .Net functions from unmanaged. You can expose these functions througfh COM and call that through unmanaged.
That is what you need to do. I attempted some work there, but time and money was devoted elsewhere... |
|
|||
|
Today I received a response from MetaQuotes Software Corp about my inquiry.
Their response: MetaQuotes: "You can create DLL files in any high-level programming language." Me: "Does this mean .Net DLLs as well?" MetaQuotes: "Yes, you can. " I asked for a sample but am not going to wait on it so I will attempt to make a C# DLL by myself. I will post the sample solution if I am successful. This means a C++ wrapper is not necessary. |
|
|||
|
I don't think that is accurate....maybe clarify how to created pure Managed Code dlls and how to define the entry points....
Unless MetaTrader now has some Managed Code aspect to it - I can't imagine that working directly as they say.... |
|
|||
|
Quote:
|
|
|||
|
You know I have been meaning to solve this one.
I may have time early next month to take a look, but I could email you what I have. You also may want to look here -> dll tutorial for Visual Studio 2005 |
|
|||
|
It is very frustrating. When I called yesterday I tried to explain to the guy the common logic that .NET is very popular and they would gain more users but he wouldn't listen. Then I asked him if there will be an API for MT4 and he said spammers caused too many problems for brokers in MT3 so there will be none in MT4. To me that said a lot about where they stand as a company. They are paid by brokers and that's who they work for and will support.
I partly believe that it might be possible to make calls to a .NET dll directly if it is compiled as COM exposed. When I tried to do it MT loaded the dll successfully but failed to call the method. I'd like to help with your effort but it seems that maintaining a wrapper might be a good deal of work. I'd be more motivated if it was 100% .NET. But I can only try the same few variances of calling the .NET dll so many times. The obvious things are that the .NET dll would need to be COM compatible, public and have public static methods. But referencing the namespaces might be where the confusion lies. I just wish I could tell for sure whether MetaQuotes is just being lazy or it is really impossible to use .NET. Does anyone know of any other successful DLL calls made through a language other than C++ such as VB 6 or Delphi? Last edited by Luke_P : 02-07-2007 at 04:08 AM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-4/5788-net-dll-wrapper.html
|
|||
| Posted By | For | Type | Date |
| Cubesteak Central » About | This thread | Refback | 07-18-2007 05:41 PM |