int _IsX64

La variable _IsX64 permet de trouver la version du terminal dans lequel l'application MQL5 est en cours d'exécution: _IsX64=0 pour un terminal 32 bits et _IsX64!=0 pour un terminal 64 bits.

La fonction TerminalInfoInteger(TERMINAL_X64) peut également être utilisée.

Exemple :

// Vérification du terminal dans lequel le programme tourne
   Print("_IsX64=",_IsX64);
   if(_IsX64)
      Print("Le programme ",__FILE__," s'exécute dans le terminal 64 bits");
   else
      Print("Le programme ",__FILE__," s'exécute dans le terminal 32");
   Print("TerminalInfoInteger(TERMINAL_X64)=",TerminalInfoInteger(TERMINAL_X64));

Voir aussi

MQLInfoInteger, Importer des fonctions (#import)