microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.1k stars 473 forks source link

0.57 core_app sample #3108

Closed MRahilly closed 2 weeks ago

MRahilly commented 2 weeks ago

Summary

I need to make these changes to main.rs to get core_app to build:

[allow(non_snake_case)]

//impl IFrameworkViewSource_Impl for CoreApp_Impl { impl IFrameworkViewSource_Impl for CoreApp { fn CreateView(&self) -> Result { // TODO: need self query self.into() to support implementing both IFrameworkViewSource and IFrameworkView on the same object. Ok(CoreAppView().into()) } }

[implement(IFrameworkView)]

struct CoreAppView();

[allow(non_snake_case)]

//impl IFrameworkView_Impl for CoreAppView_Impl { impl IFrameworkView_Impl for CoreAppView {

Crate manifest

No response

Crate code

No response

kennykerr commented 2 weeks ago

Check out the readme here:

https://github.com/microsoft/windows-rs/tree/master/crates/samples

You need to pick the version of the samples that match the version of the crate you're trying to use.

MRahilly commented 2 weeks ago

Thanks again Kenny.