vshalarora82
2008-04-01 07:41:04 UTC
Hi All,
I am using Simle MAPI Console Application from
Microsoft([url]http://download.microsoft.com/download/mapi/utility/21/w9xnt4/en-us/smplmapi.exe[/url]).
It works fine when my default mail client is Outlook, but when my
default mail client is outlook express then it shows an error.
[MAPIAllocateBuffer (strlen ( rgchMsgID ) + 1, (LPVOID FAR*) prgchMsgID
);
strcpy ( *prgchMsgID, rgchMsgID );]
When program allocates memory for Message ID using MAPIAllocateBuffer,
then it returns 0x80004005. After that when strcpy executes, an
excetpion (0xC0000005: Access Violation) is generated.
If you know the cause, please help me.
Thanks,
Vishal Arora
--
vshalarora82
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------
I am using Simle MAPI Console Application from
Microsoft([url]http://download.microsoft.com/download/mapi/utility/21/w9xnt4/en-us/smplmapi.exe[/url]).
It works fine when my default mail client is Outlook, but when my
default mail client is outlook express then it shows an error.
[MAPIAllocateBuffer (strlen ( rgchMsgID ) + 1, (LPVOID FAR*) prgchMsgID
);
strcpy ( *prgchMsgID, rgchMsgID );]
When program allocates memory for Message ID using MAPIAllocateBuffer,
then it returns 0x80004005. After that when strcpy executes, an
excetpion (0xC0000005: Access Violation) is generated.
If you know the cause, please help me.
Thanks,
Vishal Arora
--
vshalarora82
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------