Original Post
okok, i was fiddling with managed directinput (using managed c++) when i came across a weird error.
1)I need to call this method below but off course its erroreous
if i do it like that below,
keyboard->SetCooperativeLevel(owner,
CooperativeLevelFlags::Foreground |
CooperativeLevelFlags::NonExclusive |
CooperativeLevelFlags::NoWindowsKey);
//now first ignore "keyboard" & "owner"
//next, the prototype is:
public: void SetCooperativeLevel(Control* parent,
CooperativeLevelFlags flags);
//also, CooperativeLevelFlags is an __value enum.
2)the errors given are:
''Microsoft::DirectX::DirectInput::Device::SetCooperativeLevel'' : cannot convert parameter 2 from ''int''
to ''Microsoft::DirectX::DirectInput::CooperativeLevelFlags''
but isnt | a bitwise Or operator?
why cant i just use it simply like that by "Or-ing" all the enumerator flags?
need some helps...
thx!
Edwinz