Something to get your teeth in. :-)
I have a VC ++ managed .NET AAA.DLL that contains unmanaged code and MFC
7.0.
If I provide AAA.DLL with te msvcp70.dll, msvcr70.dll and mfc70.dll in the
same folder, then this can be used in other .NET code for example C#.
Now I have a pure c# generated .NET BBB.DLL that uses AAA.DLL.
This code works great used in C# projects and I have the AAA and BBB
functionality.
But here gets the big problem.
I have a conventional C++ with MFC 7.0 CCC.DLL and I want to use BBB.DLL.
It compiles, it links, but when run (called from a different exe, using
Loadlibrary & Co) and use one of the classes (just creating it) then it
complains that it does not find BBB.DLL of one of its components
The error message I get:
--- An unhandled exception of type 'System.IO.FileNotFoundException'
occurred in Unknown Module.
--- Additional information: File or assembly name SkyscanNETBase, or one of
its dependencies, was not found.
I have put all dll's in teh release folder, the debug folder, the project
folder even the Windows folders, but the error persists.
Any tips to find the cause? Last time I got an error like this was because
the mfc dll's must be in the same folder as the .NET dll that uses it. No
subfolder like .NET could use.
Thanks