You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let hwnd = GetForegroundWindow();
let acc_obj : IAccessible = AccessibleObjectFromWindow(hwnd,0 )?;
println!("{:?}", acc_obj.get_accName(CHILDID_SELF)?);
But this fails to compile:
error[E0277]: the trait bound `u32: windows::traits::into_param::IntoParam<'_, VARIANT>` is not satisfied
--> src\main.rs:18:42
|
18 | println!("{:?}", acc_obj.get_accName(CHILDID_SELF)?);
| ^^^^^^^^^^^^ the trait `windows::traits::into_param::IntoParam<'_, VARIANT>` is not implemented for `u32`
Why is it not possible to do this? Abi is implemented for u32, and IntoParam<'_, VARIANT> should be implemented for Abi? I'm I doing something wrong?
The text was updated successfully, but these errors were encountered:
I'm having the following code:
But this fails to compile:
Why is it not possible to do this? Abi is implemented for u32, and IntoParam<'_, VARIANT> should be implemented for Abi? I'm I doing something wrong?
The text was updated successfully, but these errors were encountered: