Sign in to follow this  
Arbel

[.net] Managed C++ dll calling C# code

Recommended Posts

I have a C++ managed dll calling some of our C# code in another project. This is easy to do, but I have to compile them separately and it produces 2 dll's. Is there a way I can compile the C# code within the C++ dll? Basically our installer program can only call C++ style dll's and I'd like that dll not to depends on another dll to make calls. I know you can't mix code in a single project so is there another way to do this?

Share this post


Link to post
Share on other sites
I haven't tried it with Managed C++ and C# but my guess is that netmodules are a way of doing this. You'll need to use the commandline compiler and linker.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this