Files
mql5-skills/skills/mql5/references/docs/03-predefined/0216-predefined-isx64.md
T
2026-06-23 21:47:51 +08:00

23 lines
903 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# int _IsX64
The _IsX64 variable allows finding out the bit version of the terminal, in which an MQL5 application is running: _IsX64=0 for the 32-bit terminal and _IsX64!=0 for the 64-bit terminal.
Also, function [TerminalInfoInteger(](/en/docs/check/terminalinfointeger)[TERMINAL_X64](/en/docs/check/terminalinfointeger)[)](/en/docs/check/terminalinfointeger) can be used.
Example:
```
// Checking the terminal, in which the program is running
   Print("_IsX64=",_IsX64);
   if(_IsX64)
      Print("Program ",__FILE__," is running in the 64-bit terminal");
   else
      Print("Program ",__FILE__," is running in the 32-bit terminal");
   Print("TerminalInfoInteger(TERMINAL_X64)=",TerminalInfoInteger(TERMINAL_X64));
```
See also
[MQLInfoInteger](/en/docs/check/mqlinfointeger), [Importing functions (#import)](/en/docs/basis/preprosessor/import)