Can't use `implement` macro for `Application`
ZoeyR opened this issue · 3 comments
ZoeyR commented
Problem
I am trying to use the implement
macro to implement a subclass of Microsoft::UI::Xaml::Application
. It produces a build error
error[E0599]: no function or associated item named `new` found for struct `windows_app::Microsoft::UI::Xaml::IApplication_Vtbl` in the current scope
error[E0599]: no function or associated item named `matches` found for struct `windows_app::Microsoft::UI::Xaml::IApplication_Vtbl` in the current scope
riverar commented
Sorry to keep you waiting, missed this issue.
Earlier versions of the windows-app
crate didn't emit the implement
feature (or bring in the upstream windows implement
feature). #37 does but I'll pull that out and merge it separately today. Standby.
riverar commented
@ZoeyR Give that a spin. Let me know if you run into any other issues. There's a new sample too that may be helpful.
windows-app-rs/crates/samples/xamlapp/src/main.rs
Lines 38 to 56 in 8bb7a82