is Variant the same as Variant_BOOL for VisualBasic? i mean that there is an entry in help:
(VARIANT_BOOL) bEnable retval = SldWorks.EnableStereoDisplay ( bEnable ) Thus, any plug-in that might need to display stereoscopically should, upon loading, immediately call EnableStereoDisplay, with the flags field set to
0x01. To actually activate stereo display, call EnableStereoDisplay with the flags field set to 0x03. To deactivate stereo display, call EnableStereoDisplay with the flags field set to 0x01. Finally, just before the plug-in uninstalls, restore SolidWorks' default behavior by calling EnableStereoDisplay with the flags field set to 0x00.but i can not find any way to assign 0x03 to Variant, and Dim bEnable as Variant_bool does not compile i`ve tried Dim bEnable as Variant bEnable=3 and bEnable=-3 (because true is -1) but i don`t know if it worked How can i set bitfields in VB? i have been programming in delphi, i am not good in Microsoft .Net