none
interface class generator RRS feed

  • Question

  • hi

    We have an interface (C style) and it's not easy to use it. That's why we did build a generator for access classes. Now you can write what you want and it generates all the classes needed. This works great for C++, because C++ is using a lot of #include anyway. So, it's similar to the MIDL compiler. And it was possible to build an integration into Visual Studio that looks and behaves in a way that seems to be "right".

    Now we need the same for .net languages. We can generate C++/CLI code, build an assembly out of that and use it in the .net project. That works fine. The only problem is, that... it may not "look right". What this means is that you have to build some kind of access-assembly semi-manually inside another project.

    So, we have two questions about that:

    1) what do you think about the fact, that you need an "access assembly" and that it's not possible to fully include the code into your project?

    2) do you think it could be possible to generate the assembly at build time (from just 1 file... -> IVsSingleFileGenerator?) and link it directly? or should we keep the extra-project solution?

    ... and, maybe 3) how should the integration look like? What's "right"?

    Rudolf

    Saturday, December 15, 2018 7:29 PM

All replies

  • Hi Rudolf Meier,

    Thank you for posting here.

    >>The only problem is, that... it may not "look right".

    What do you mean about may not look right?

    >>1) what do you think about the fact, that you need an "access assembly" and that it's not possible to fully include the code into your project?

    If it is a .net library .dll file, we could use it via adding reference. If it is unmanaged dll like C++ dll, we could invoke the function via DllImport.

    >>2) do you think it could be possible to generate the assembly at build time (from just 1 file... -> IVsSingleFileGenerator?) and link it directly? or should we keep the extra-project solution?

    I am not sure what is the extra-project solution? What is the assembly you want to generate and use it?

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, December 18, 2018 8:36 AM
    Moderator