1

Closed

LNK2019: unresolved external symbol MAPILogon

description

Hi,
 
I want to use the Simple MAPI function “MAPILogon” but the Linker says only “error LNK2019: unresolved external symbol MAPILogon referenced in function…”.
 
I think that the definition of the function “MAPILogon” in MapiStubLibrary.cpp is a little bit wrong.
 
So I changed the original definition from:
DEFINE_STUB_FUNCTION_6(LINKAGE_EXTERN_C, ULONG, FAR PASCAL,
    SimpleMAPILogon, "MAPILogon",
    ULONG, LPSTR, LPSTR, FLAGS, ULONG, LPLHANDLE, (ULONG) MAPI_E_CALL_FAILED)
to:
DEFINE_STUB_FUNCTION_6(LINKAGE_EXTERN_C, ULONG, FAR PASCAL,
    MAPILogon, "MAPILogon",
    ULONG_PTR, LPSTR, LPSTR, FLAGS, ULONG, LPLHANDLE, (ULONG) MAPI_E_CALL_FAILED)
and now the Linker error is gone.
Closed Apr 16, 2012 at 7:04 PM by sgriffin

comments

sgriffin wrote Apr 16, 2012 at 7:03 PM

Fixed in 90429

wrote Apr 16, 2012 at 7:04 PM

wrote Feb 13, 2013 at 11:25 PM

wrote May 16, 2013 at 6:55 AM