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
It looks like the new function doesn't exist on the IDataObject_Vtbl struct, which the implement macro is trying to call.
Can this be added please? Or am I doing something wrong maybe?
Error message:
error[E0599]: no function or associated item named `new` found for struct `IDataObject_Vtbl` in the current scope
--> src\main.rs:22:1
|
22 | #[implement(IDataObject)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ function or associated item not found in `IDataObject_Vtbl`
|
= note: this error originates in the attribute macro `implement` (in Nightly builds, run with -Z macro-backtrace for more info)
Here is my Cargo.toml:
[package]
name = "dragsample"version = "0.1.0"edition = "2021"# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
windows = { version = "0.56", features = [
"implement",
"Win32_Graphics_Gdi",
"Win32_System_LibraryLoader",
"Win32_UI_WindowsAndMessaging",
"Win32_System_Com",
"Win32_System_Ole",
"Win32_UI_Shell"
] }
Suggestion
It looks like the
new
function doesn't exist on theIDataObject_Vtbl
struct, which theimplement
macro is trying to call.Can this be added please? Or am I doing something wrong maybe?
Error message:
Here is my Cargo.toml:
And my code:
The text was updated successfully, but these errors were encountered: