-
Notifications
You must be signed in to change notification settings - Fork 124
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
Does this project support third party DLL? #2015
Comments
Not sure what that means, closing for now but feel free to add more detail! |
I want to generate c# bindings for C dll automatically. |
@HppZ Check out my article on generating metadata here https://withinrafael.com/2023/01/18/generating-metadata-for-the-windows-crate/. You can then swap out windows-rs and Rust for CsWin32 and C#. |
thank you! how to customize [DllImport("testdll", ExactSpelling = true)]
[DefaultDllImportSearchPaths(DllImportSearchPath.System32)]
internal static extern int add(int a, int b); |
Use an assembly attribute instead: [assembly: DefaultDllImportSearchPaths(DllImportSearchPath.System32)] |
I have to dig into source code of cswin32, but not resolved yet. |
I added |
Ah, I didn't realize CsWin32 emits its own. @AArnott thoughts? Or should we file an issue over on CsWin32? |
|
any update? |
@HppZ You can make these public by a setting in NativeMethods.json. The README file has details. |
No description provided.
The text was updated successfully, but these errors were encountered: