Yes, it is quite possible. You just need to be careful with types. Many translate very well, but some are bizarre.
The name of the concept you are looking for is COM interop. See here for a getting started tutorial. Of course, the MFC DLL must support COM for access from .NET. You need to rebuild your MFC libraries with the corresponding supported COM interfaces.
Here is an MSDN Overview for COM Automation with links to sample projects.
And here's a simple but pointy CodeProject example that demonstrates how COM libraries can be used from .NET collections.
Great link here. To access native Win32 APIs as well.
Edit: another idea
If you cannot restore your MFC DLLs (you do not have the original or correct version of the IDE), you can create a COM shell DLL wrapper in MFC or raw C / C ++ that will import the MFC DLLs into the standard one, before COM -method, and then expose the objects and methods that you need.
Paul sasik
source share