MQL4 - automated forex trading   /  

Documentation

ODL Securities

MQL4 Reference  Checkup  IsDllsAllowed

 
bool IsDllsAllowed( )
Returns TRUE if the function DLL call is allowed for the expert, otherwise returns FALSE.
See also IsLibrariesAllowed(), IsTradeAllowed().
Sample:
  #import "user32.dll"
     int     MessageBoxA(int hWnd, string szText, string szCaption,int nType);
  ...
  ...
  if(IsDllsAllowed()==false)
    {
     Print("DLL call is not allowed. Experts cannot run.");
     return(0);
    }
  // expert body that calls external DLL functions
  MessageBoxA(0,"an message","Message",MB_OK);