-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
COM interface binding generation fails with HWNDs #3325
Comments
Please attach the .winmd for the repro. |
Attached |
Thanks, I believe I have this fixed in a working branch but I'll confirm with this repro. |
Ah, I see the repro attempts to generate everything (neat!) but seems to assume that |
OK, found "--config",
"flatten", Not sure why you're using those options but "flatten" doesn't quite do what it says - I've already fixed this in a development branch but will need a bit more time to stabilize. #3245 |
Sorry for the delay - I've been heads down on a major update to |
Thanks! I was able to migrate with this tip. I can't remember why I'd chosen flatten, maybe a misguided attempt to keep things simple. |
Summary
This is a regression sometime between 0.48 and 0.58.
Given the following IDL file, compiled with midl + generated winmd, creating Rust bindings fails because the bindings refer to the HWND and HANDLE types which have not been imported or defined.
A minimal repro is attached. It requires nuget.exe in the path, available from nuget.org, and dotnet.exe (v.8) as well.
mydk.zip
Crate manifest
No response
Crate code
No response
The text was updated successfully, but these errors were encountered: