Passing bool variables to .DLL code does not work properly

 

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.

Reason: