My compiler reads the bool value in the dll as - unsigned char
There is error. Should be int
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I import a function from dll with a bool as a parameter
double GetValue(bool x);
My compiler reads the bool value in the dll as - unsigned char with the value of ' 0" '. This will always be read as 0 or false. I think this is a bug and thought it should be brought to your attention if I am correct.
g