I have created a ATL dll that must wrap an existing MFC dll so that I create a resultant COM interface.
The mfc dll's lib has been properly referenced etc. etc.
The error I get on linking is 2019 which means my call does not match the original.
Here is a typical ATL dll method with its details:
I need to know what I need to do to correct the problem. I want to use implicit linking.
STDMETHODIMP CWrap::CloseDevice(LONG* lngRetVal)
// [DllImport("Device.dll", EntryPoint = "dllCloseDevice", SetLastError = false,
// CharSet = CharSet.Ansi,
// static extern string functionname( string key );
int iRet = dllCloseDevice();
*lngRetVal = (long)iRet;