#import - file not closed

To add comments, please log in or register
jshumaker
608
jshumaker  

I am trying to connect MT4 to SQL Server according to the following link (https://www.mql5.com/en/articles/1533).  When I try to compile a basic script to import the dll, I get 'msado15.dll' - #import was not closed. 

#property copyright ""
#property link      ""
#property version   "1.00"
#property strict
#import "msado15.dll"

void OnStart()
  {
   
   Comment("test");
  }

Here

Integrating MetaTrader 4 Client Terminal with MS SQL Server
Integrating MetaTrader 4 Client Terminal with MS SQL Server
  • 2008.06.24
  • Yuriy Zaytsev
  • www.mql5.com
The use of integrations with other products offers additional challenge in trading. There can be many usages thereof, so I will give some of them below. You can collect ticks and pass them to MS SQL SERVER for further analysis. Having a large tick history, you can collect any period starting from the minimum time slice and up to any...
William Roeder
20214
William Roeder  
jshumaker: #import was not closed.
Look at the documentation.
          Language Basics / Preprocessor / Importing Functions (#import) - Reference on algorithmic/automated trading language for MetaTrader 5
Your codeExample
#import "msado15.dll"





void OnStart()  // rest ...
#import "file_name"
    func1 define;
    func2 define;
    ...
    funcN define;
#import
//rest ...
To add comments, please log in or register