.NET Gotchas
- You can only call Regular C++ MFC DLLs from C#, you cannot call MFC Extension DLLs. The reason for this is that Extension DLLs have no WinApp object.
- You cannot use __argv[0] in a Regular DLL that is to be called by a C# program.
- If you call a function in an unmanaged C++ DLL (built with VS2005 or later) from a C# application and that function in the DLL calls LoadLibrary() to load a DLL
which does not contain a manifest then you will get an error.