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
#[implement] can't work after updated from windows 0.57.0 to windwos 0.58.0.
error[E0277]: the trait bound `MyEvent_Impl: IUIAutomationEventHandler_Impl` is not satisfied
--> src/main.rs:24:1
|
24 | #[implement(IUIAutomationEventHandler)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `IUIAutomationEventHandler_Impl` is not implemented for `MyEvent_Impl`
|
= help: the trait `IUIAutomationEventHandler_Impl` is implemented for `MyEvent`
note: required by a bound in `IUIAutomationEventHandler_Vtbl::new`
--> C:\Users\leexg\.cargo\registry\src\index.crates.io-6f17d22bba15001f\windows-0.58.0\src\Windows\Win32\UI\Accessibility\impl.rs:7477:19
|
7475 | pub const fn new<Identity: windows_core::IUnknownImpl, const OFFSET: isize>() -> IUIAutomationEventHandler_Vtbl
| --- required by a bound in this associated function
7476 | where
7477 | Identity: IUIAutomationEventHandler_Impl,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `IUIAutomationEventHandler_Vtbl::new`
= note: this error originates in the attribute macro `implement` (in Nightly builds, run with -Z macro-backtrace for more info)
Crate manifest
[package]
name = "impl_test"version = "0.1.0"edition = "2021"
[dependencies.windows]
version = "0.58.0"features = [
"implement",
"Win32_System_Com",
"Win32_UI_Accessibility",
"Win32_System_Ole",
"UI_UIAutomation",
]
[dependencies.windows-core]
version = "0.58.0"
Yes, the `windows-core` still needs to be dependent along with `windows`.
***@***.***
From: Zerowalker
Date: 2024-07-12 17:03
To: microsoft/windows-rs
CC: Steven Lee; Author
Subject: Re: [microsoft/windows-rs] Error when implementing a COM interface (Issue #3156)
Do you actually need to add the windows-core dependency now along with windows?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Summary
#[implement]
can't work after updated fromwindows 0.57.0
towindwos 0.58.0
.Crate manifest
Crate code
The text was updated successfully, but these errors were encountered: