This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community
Passing bool variables to .DLL code does not work properlyBack to topics list |
|
gc1
2010.04.23 05:49
I have found that if an argument type to a .DLL function is defined as "bool" in the function definition in the .mqh file a binary value of all zeros is passed to the the .DLL code whether the actual argument value is true or false. This problem is present irrespective of whether the C code defines the argument type as bool or int. If the argument type is defined as "int" in the .mqh file then a correct binary value (0 for false and 1 for true) is passed. This is on build 226, I have not tried it on previous versions. |
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets
