Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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

Reply
 
LinkBack (1) Thread Tools Display Modes
  #11 (permalink)  
Old 02-07-2007, 01:31 PM
Member
 
Join Date: Dec 2006
Posts: 76
dwmcqueen is on a distinguished road
I have heard that proper dlls created in VB6 do work.

One of the problems, and maybe you ran into this with your test, is that the function names get mangled. You need to specify a def file in Visual Studio.

I understand where MetaTrader is coming from. Bridging the Managed and Unmanaged gap is not an easy undertaking. For me, I am actually relieved they don't since that would prevent MetaTrader from running on Linux, OSX, etc. I have seen several other applications (Dreamweaver, for example) that allow .dll plugins but have the same restrictions. As far as not building an API, after all MetaTrader only exists for the brokers. People need to pressure their brokers for an API.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-07-2007, 01:47 PM
Member
 
Join Date: Dec 2006
Posts: 76
dwmcqueen is on a distinguished road
With a little help, it might not be too hard to develop a tool that takes a .net dll, creates c++ code from the dll that would call the .net dll and then automatically compile the c++ code.

Anyone interested?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 02-07-2007, 08:19 PM
cubesteak's Avatar
Senior Member
 
Join Date: Jul 2006
Location: Southern California
Posts: 163
cubesteak is on a distinguished road
Quote:
Originally Posted by dwmcqueen
With a little help, it might not be too hard to develop a tool that takes a .net dll, creates c++ code from the dll that would call the .net dll and then automatically compile the c++ code.

Anyone interested?
Wow, that would be impressive! Sounds difficult to me - decompilation of the MSIL, then auto code generation of unmanaged C++ from the C# that will conform to MT4 nuances...

Am I missing something? I'd certainly love the tool, but I think its above my talents as a programmer...

-CS
__________________

Join the MultiBroker M1 and TICK Data Bank Project

Imagine 90-99% modeling quality in MT4 back testing with free data from your broker!
Come see our current list of covered brokers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-07-2007, 10:42 PM
Junior Member
 
Join Date: Nov 2006
Posts: 26
Luke_P is on a distinguished road
I agree. That is aiming a little too high. I will try and get the basic wrapping on a single method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-07-2007, 11:20 PM
Member
 
Join Date: Dec 2006
Posts: 76
dwmcqueen is on a distinguished road
Not to difficult - and here is why:

1. http://blogs.msdn.com/deeptanshuv/ar...26/432870.aspx - says we can call managed code from unmanaged and gives the procedure for doing this. It seems to expose as COM interfaces the managed entry points.

2. There is some semi-automated methods for exposing COM functions through the use of pexports (especially for us MingW users).

3. Really this is only text parsing and spitting out new files to be passed into a defined compiler.

2. In addition, http://msdn.microsoft.com/msdnmag/issues/05/04/C/ - shows the use of a manual wrapper class that exposes these Managed functions to non-managed code by automatically generating a dll. This may be the easier way to go....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 02-07-2007, 11:22 PM
Member
 
Join Date: Dec 2006
Posts: 76
dwmcqueen is on a distinguished road
The more important reason why this is attainable - a few smart coding specifications at RentACoder and we can have an off-shore team doing the coding for cheap.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT. The time now is 05:09 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.