Build 1643 #import issue

 
#define DLLFILE "test.dll"

#import DLLFILE                 
int             MqlLock_59BA7AC0_1_1I1iI1II1i(double, int, string) ;
#import

int OnInit() { return(INIT_SUCCEEDED); }
void OnDeinit(const int reason){  }
void OnTick() {}


Given basic code compiles well with Build < 1643 but it throws an error


#import is expecting a filaneme

Briefly 1643 does not use #define variables. Is this 1643 broken? Because i cannot find this installation anymore, was it withdrawn from metaquotes because of such bugs?

 

You are right.  Now the usage #import is allowed only for string values but not for defines. Is is change due the security reasons.