T
Tony Maresca
Hello.
My C# based assembly is loaded into a commercial MFC
based application as a 'plug-in' of sorts. The host app
exposes limited API functionality, and one of the APIs
it provides is a static exported unmanaged C++ function
that returns a pointer to its CWinApp object.
From my assembly, I need to P/Invoke the following
member on the instance of the CWinApp:
CWinApp:umpMessage()
I believe that I can do this, using [DllImport()...] with
CallingConvention.ThisCall, but I don't know how to
identify the export (it seems to be that MFC70P.dll shows
only ordinals).
Any ideas on if/how to do this from C# ?
TIA, Tony
My C# based assembly is loaded into a commercial MFC
based application as a 'plug-in' of sorts. The host app
exposes limited API functionality, and one of the APIs
it provides is a static exported unmanaged C++ function
that returns a pointer to its CWinApp object.
From my assembly, I need to P/Invoke the following
member on the instance of the CWinApp:
CWinApp:umpMessage()
I believe that I can do this, using [DllImport()...] with
CallingConvention.ThisCall, but I don't know how to
identify the export (it seems to be that MFC70P.dll shows
only ordinals).
Any ideas on if/how to do this from C# ?
TIA, Tony