quote:
Originally posted by Mnjul
Anyway, to keep things a little bit more "geeky": while VARIANT_FALSE is usually defined 0, VARIANT_TRUE is usually defined as -1 (and it's a short -1, which is 0xffff), not 1. "true" in C++ usually translates into a positive 1 with common compiler implementation (of course, anything could work), FYI.
Thanks for clearing that up. I just looked at some of my revisions and I saw that I never tried VARIANT_TRUE itself. I tried to cast a bool or int to a VARIANT_BOOL, assuming it would work. After your explanation now trying it with -1 it magically works. Ahh well, ternary operations to the resque.
Also, thanks for your tutorial, it motivated and helped me to get started on the project I'm currently working on and it sure helped me a lot!