What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Button_SetCheckState

Button_SetCheckState
Author: Message:
enoid
New Member
*


Posts: 6
Joined: May 2011
O.P. RE: RE: Button_SetCheckState
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!
05-27-2011 11:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Button_SetCheckState - by enoid on 05-26-2011 at 11:28 PM
RE: Button_SetCheckState - by matty on 05-27-2011 at 01:38 AM
RE: RE: Button_SetCheckState - by enoid on 05-27-2011 at 07:50 AM
RE: Button_SetCheckState - by Eljay on 05-27-2011 at 08:06 AM
RE: RE: Button_SetCheckState - by enoid on 05-27-2011 at 08:33 AM
RE: Button_SetCheckState - by Mnjul on 05-27-2011 at 08:47 AM
RE: RE: Button_SetCheckState - by enoid on 05-27-2011 at 11:31 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On