D
dragonslayer008
Petzolds C# book has code like this:
(mea.Button & MouseButtons.Right != 0)
I try the C++/CLI analog:
if( (e->Button & ::MouseButtons::Left) != 0 )
but get errors:
error C2678: binary '!=' : no operator found which takes a left-hand
operand of type 'System::Windows::Forms::MouseButtons' (or there is no
acceptable conversion)
why?
(mea.Button & MouseButtons.Right != 0)
I try the C++/CLI analog:
if( (e->Button & ::MouseButtons::Left) != 0 )
but get errors:
error C2678: binary '!=' : no operator found which takes a left-hand
operand of type 'System::Windows::Forms::MouseButtons' (or there is no
acceptable conversion)
why?