John,
You can not use DllImport to access classes written in MFC. You can use
MFC in the implementation, but your declarations have to be standard
exported functions.
If you want, you can also use Managed Extensions for C++ to wrap your
MFC classes and create a managed interface to them.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
Quote:
> Hello,
> I am trying to do a DLLImport on a DLL that was written
> in MFC. It seems all of the entry points are decorated
> and I cannot seem to figure out how to call them.
> using dumpbin I get the following
> I know Init is a function in Class HilltopMgr, but how do
> I call it?
> [DllImport("Hilltop.dll")]
> errors!
> Is there a way to build a MFC DLL without decorating?
> Any help would be greatly appreciated!!!