Tech Off Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Is possible to embed native components in mixed .NET assemblies?

Back to Forum: Tech Off
  • User profile image
    Ion Todirel

    Scenario 1: I have native component X (as dll) that is exporting some functions to managed component Y. Y use some functions from X via P/Invoke.
    Result: component X must be somewhere on the PC as X.dll and also i have Y.dll.

    Scenario 2: Same as 1 but with COM components.

    Question: Is possible to merge X with Y and create a mixed assembly? Somehow?. C++ can output mixed assemblies (that contains native + managed code), so there may be a way to do this. What do you think, would be great to have a ILMerge tool that merge not only managed assemblies.

  • User profile image
    littleguru

    I wonder if that is even possible to do.

  • User profile image
    Ion Todirel

    littleguru wrote:
    I wonder if that is even possible to do.
    Mixed assemblies is possible, here.

  • User profile image
    littleguru

    Ion Todirel wrote:
    
    littleguru wrote: I wonder if that is even possible to do.
    Mixed assemblies is possible, here.


    Yes, but that is the C++ compiler. The ILMerge tool does merge of one or more IL assemblies, as the name says... It's no C++ compiler.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.