![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I used Microsoft's IConverterSession-MAPIToMIMEStm (exposed by Outlook
2003) to save an MSG into EML / RFC822 format. I then turned around and tried to convert the eml file back to a MAPI MSG / LPMESSAGE using the reverse call of IConverterSession-MIMEToMAPI. When I invoke the MIMEtoMAPI call I get an Access Violation reading location 0.x00000000. Has anyone else had any luck using MAPIToMimeStrm? Here is a code snippet of what I am doing: hr = OpenStreamOnFile(MAPIAllocateBuffer, MAPIFreeBuffer, STGM_READ, inMimeFile, NULL, &pMimeStream); _ASSERTE(SUCCEEDED(hr)); hr=CoCreateInstance(CLSID_IConverterSession, NULL, CLSCTX_INPROC_SERVER, IID_IConverterSession, (void **) &pConverterSession); _ASSERTE(SUCCEEDED(hr)); pConverterSession-SetEncoding(IET_QP); pConverterSession-SetSaveFormat(SAVE_RFC822); hr = pConverterSession-MIMEToMAPI(pMimeStream, lpMessage , NULL, CCSF_SMTP | CCSF_INCLUDE_BCC); --access violation error ocurrs here _ASSERTE(SUCCEEDED(hr)); scott |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
IConverterSession::MIMEToMAPI | Scott McFadden | Outlook - General Queries | 2 | March 25th 06 09:34 AM |