My compiler reads the bool value in the dll as - unsigned char
There is error. Should be int

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