Skip to content
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

Q: Generate pure C# interfaces for COM interop? #217

Open
obiwanjacobi opened this issue Oct 2, 2021 · 0 comments
Open

Q: Generate pure C# interfaces for COM interop? #217

obiwanjacobi opened this issue Oct 2, 2021 · 0 comments

Comments

@obiwanjacobi
Copy link

obiwanjacobi commented Oct 2, 2021

Noob here, again.

After playing with SharpGen for a bit I got the first code generate (yeah!).
This raised some questions I hope you can answer for me.

  1. Can SharpGen generate C# interfaces?
    The generated code I get is mainly focused on wrapping unmanaged object/interface pointers to be called from C#. I also need the other direction where unmanaged code will all into C# interfaces (vtables?) that are to be implemented. Both ways require marshaling?
  2. How to use the generated code output and assembly icall rewriter?
    I have not found any docs on this. Currently the generated code ends up buried in the obj folder. How is this intended to be used in a project?
  3. Is it possible to generate code for any SharpGen.Runtime dependencies and not use the runtime assembly?
    I would prefer to create a self contained assembly with all my interfaces, structs and interop.

The answers to these questions will help me decide if to use SharpGen or build my own using the new ComWrappers API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant