Managed and Unmanaged Code in one DLL?

Z

Zak

It would be nice to have one DLL that contains both my managed and my
unmanaged functions. I would like to be able to use the unmanaged parts
from C++ without a .NET Framework dependency too.

Is this at all possible?

Currently, I have one DLL with a bunch of C functions that I use from
unmanaged C++ programs. I have another DLL with a bunch of .NET classes
that I use from C# and VB.NET. I would like to have all of this
combined in a single DLL that doesn't require the .NET Framework when it
is used from C++.

Here's to hoping! :)
-Zak
 
F

Fredrik Wahlgren

Zak said:
It would be nice to have one DLL that contains both my managed and my
unmanaged functions. I would like to be able to use the unmanaged parts
from C++ without a .NET Framework dependency too.

Is this at all possible?

Currently, I have one DLL with a bunch of C functions that I use from
unmanaged C++ programs. I have another DLL with a bunch of .NET classes
that I use from C# and VB.NET. I would like to have all of this
combined in a single DLL that doesn't require the .NET Framework when it
is used from C++.

Here's to hoping! :)
-Zak

I think the .NET framework at least needs to be present even if you only
call unmanaged portions of your dll.
/Fredrik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top