Download MetaTrader 5

Problem #import'ing a DLL Extension

To add comments, please log in or register
Write your articles using our editor. It is convenient!
kruhft
13
kruhft 2012.01.18 14:08 

Hello,

I'm trying a simple DLL extension loading example from:

http://www.metatrader.info/node/150

My MT code is the following:

    #import "Metatrader Test.dll"
    void Hello(string say);
    #import

When I try and run my script, I get "initalization of Metatrader DLL Test (EURUDS,H1) failed".  
Is there any way to get a bit more information out of MT as to what exactly did fail?  The DLL 
I created is almost exactly the same as the above example except for the name, which is
"Metatrader Test.dll".  Could the spaces in the filename be causing problems?

Also, when #import'ing a DLL, is there a specific directory that they must be placed in?

--
Burton Samograd
http:://kruhft.dyndns.org

kruhft
13
kruhft 2012.01.26 04:26  

Seems I didn't have DLL loading enabled and didn't see the message in the experts window.  My bad.

--

Burton Samograd

http://kruhft.dyndns.org

To add comments, please log in or register