Git Product home page Git Product logo

Comments (3)

BosAurochs avatar BosAurochs commented on May 18, 2024

Specifically, when using windows-rs version 0.29, I get four different errors related to IVector_abi and IObservableVector_abi.

error[E0412]: cannot find type `IObservableVector_abi` in module `windows::Foundation::Collections`
    --> C:\Users\*\.cargo\git\checkouts\windows-app-rs-2b833a79998cddd6\5438301\src\Microsoft\UI\Xaml\mod.rs:5161:55
     |
5161 |       type Vtable = ::windows::Foundation::Collections::IObservableVector_abi<DependencyObject>;
     |                                                         ^^^^^^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `IObservableVectorVtbl`
     |
    ::: C:\Users\*\.cargo\registry\src\github.com-1ecc6299db9ec823\windows-0.29.0\src\Windows\Foundation\Collections\mod.rs:1233:1
     |
1233 | / pub struct IObservableVectorVtbl<T>(
1234 | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *mut ::core::ffi::c_void) ...
1235 | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32,
1236 | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32,
...    |
1244 | | where
1245 | |     T: ::windows::core::RuntimeType + 'static;
     | |______________________________________________- similarly named struct `IObservableVectorVtbl` defined here


error[E0412]: cannot find type `IVector_abi` in module `windows::Foundation::Collections`
     --> C:\Users\*\.cargo\git\checkouts\windows-app-rs-2b833a79998cddd6\5438301\src\Microsoft\UI\Xaml\mod.rs:32901:55
      |
32901 |       type Vtable = ::windows::Foundation::Collections::IVector_abi<TriggerAction>;
      |                                                         ^^^^^^^^^^^ help: a struct with a similar name exists: `IVectorVtbl`
      |
     ::: C:\Users\*\.cargo\registry\src\github.com-1ecc6299db9ec823\windows-0.29.0\src\Windows\Foundation\Collections\mod.rs:1676:1
      |
1676  | / pub struct IVectorVtbl<T>(
1677  | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void, iid: &::windows::core::GUID, interface: *mut *mut ::core::ffi::c_void) ...
1678  | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32,
1679  | |     pub unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32,
...     |
1697  | | where
1698  | |     T: ::windows::core::RuntimeType + 'static;
      | |______________________________________________- similarly named struct `IVectorVtbl` defined here

There was also an error relating to the Debug trait. This was a known problem introduced in windows-rs 0.29, and fixed in 0.30. The crate compiles without error when using windows-rs 0.28.

from windows-app-rs.

kennykerr avatar kennykerr commented on May 18, 2024

This should be fixed once windows-app-rs switches over to the new bindgen crate. @riverar

from windows-app-rs.

riverar avatar riverar commented on May 18, 2024

Yep, hoping to close all issues here with a new crate update!

from windows-app-rs.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.