Re: Using MAPI to send MMS: Link Errror
- From: "Mo" <marabo82@xxxxxxxxxxx>
- Date: 13 Jun 2006 15:16:07 -0700
Hi,
no response/luck so far but i went to Project | Properties | Linker |
Input and added mapi.lib to Additional dependencies
now i get another error
Error 1 fatal error LNK1136: invalid or corrupt file c:\Documents and
Settings\marabo\My Documents\Visual Studio
2005\Projects\SendMMS\SendMMS\mapi.lib 1
any other parameters i need to specify? where do i specify the path to
mapi.lib?
i even tried specifying the path to mapi.lib as (under Additional
dependencies)
"C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\Lib\mapi.lib"
but that didnt work either
my question is, is this lib compiled for desktop? where i can get the
mapi library that is for windows mobile smartphone 5.0?
any help ?
Regards
Mo
Mo wrote:
Hello again
i understand that i might need to add a refrenece to the MAPI library
(as i ve seen from similar posts) but i am using VS 2005, my project is
VC++ Smart Device, Win32 Smart Device Project and there is no
project->settings->link tab....... :-(
Any idea?
Thanks
Mo wrote:
Hello All,
I am using VS 2005 to create a win32 app that sends MMS messages
i have the right header files included in my code
#include "cemapi.h"
#include "mapix.h"
#include "MAPIUTIL.H"
#include "MAPIGuid.h"
but i am getting these link error messages
Error 1 error LNK2019: unresolved external symbol MAPILogonEx
referenced in function "void __cdecl InitMAPI(void)"
(?InitMAPI@@YAXXZ) MMS.obj
Error 2 error LNK2019: unresolved external symbol MAPIInitialize
referenced in function "void __cdecl InitMAPI(void)"
(?InitMAPI@@YAXXZ) MMS.obj
I am confused, i tought the header files should include these two
functions (MAPILogonEx, MAPIInitialize) what else do i need to add?
Regards
Mo
below is my code
<code>
HRESULT hr;
ICEMAPISession * pSession = NULL;
hr = MAPIInitialize(NULL);
if (hr != S_OK) {
// MAPIInitialize failed.
MessageBox(NULL,
_T("MAPIInitialize failed."),
_T("Warning"),
MB_OK);
exit(0); // Replace with specific error handling.
}
hr = MAPILogonEx(0, NULL, NULL, 0, (LPMAPISESSION *)&pSession);
if (hr != S_OK) {
// MAPILogonEx failed.
MessageBox(NULL,
_T("MAPILogonEx failed."),
_T("Warning"),
MB_OK);
exit(0); // Replace with specific error handling.
}
</code>
.
- Follow-Ups:
- References:
- Using MAPI to send MMS: Link Errror
- From: Mo
- Re: Using MAPI to send MMS: Link Errror
- From: Mo
- Using MAPI to send MMS: Link Errror
- Prev by Date: Re: msmq and multi-threading considerations for windows mobile 5.0
- Next by Date: Re: Using MAPI to send MMS: Link Errror
- Previous by thread: Re: Using MAPI to send MMS: Link Errror
- Next by thread: Re: Using MAPI to send MMS: Link Errror
- Index(es):
Relevant Pages
|