MQL4 Reference
Checkup
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);
|
|
|