Click here to Skip to main content
16,007,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simulate a carriage return Pin
CMFC6.0VS.NETUser6-Jul-01 4:49
CMFC6.0VS.NETUser6-Jul-01 4:49 
GeneralBeginner Question Pin
Dan Madden5-Jul-01 9:55
Dan Madden5-Jul-01 9:55 
GeneralRe: Beginner Question Pin
Pavlos Touboulidis5-Jul-01 10:29
Pavlos Touboulidis5-Jul-01 10:29 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 17:38
Dan Madden5-Jul-01 17:38 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:11
Mike Burston5-Jul-01 18:11 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 18:25
Dan Madden5-Jul-01 18:25 
GeneralRe: Doesn't Work Pin
Mike Burston5-Jul-01 18:42
Mike Burston5-Jul-01 18:42 
GeneralRe: Doesn't Work Pin
Dan Madden5-Jul-01 19:20
Dan Madden5-Jul-01 19:20 
Thanks for you help...because I took a look from a far, I can now read the entire body of the message. The way I did this was first of all, I "Read the ____ing Manual". MAPI says that if you have a large message to read, you should do the following (I felt you deserved how I got it to work!:

hr = pmsgRoute->OpenProperty(PR_BODY, STGM_READ, (LPUNKNOWN FAR *) &lpstreamBody);
if(S_OK != GetScode(hr))
{
DebugTraceResult(OpenProperty, hr);
goto err;
}

hr = lpstreamBody->Stat(&statstg, STATFLAG_NONAME);
if(S_OK != GetScode(hr))
{
DebugTrace("IStream::Stat failed");
goto err;
}

Assert(statstg.cbSize.HighPart == 0);
if(MAPIAllocateBuffer(statstg.cbSize.LowPart + 1, (LPVOID FAR *) &lpszNoteText))
{
goto err;
}

hr = lpstreamBody->Read(lpszNoteText, statstg.cbSize.LowPart, &cb);
if(S_OK != GetScode(hr))
{
DebugTrace("IStream::Read failed");
goto err;
}

lpszNoteText[statstg.cbSize.LowPart] = '\0';
SetDlgItemText(hDlg, IDC_RTNOTE, lpszNoteText);

MAPIFreeBuffer(lpszNoteText);
lpszNoteText = NULL;
lpstreamBody->Release();
lpstreamBody = NULL;

Thanks in advance,

Dan
Generalpointer to a function Pin
5-Jul-01 9:13
suss5-Jul-01 9:13 
GeneralRe: pointer to a function Pin
Chris Losinger5-Jul-01 9:26
professionalChris Losinger5-Jul-01 9:26 
GeneralRe: pointer to a function Pin
KingsGambit5-Jul-01 18:00
KingsGambit5-Jul-01 18:00 
GeneralRe: pointer to a function Pin
5-Jul-01 18:28
suss5-Jul-01 18:28 
GeneralRe: pointer to a function Pin
8-Jul-01 11:03
suss8-Jul-01 11:03 
GeneralRe: pointer to a function Pin
Oliver Anhuth8-Jul-01 20:53
Oliver Anhuth8-Jul-01 20:53 
GeneralCStringList and CList problem Pin
5-Jul-01 7:54
suss5-Jul-01 7:54 
GeneralDevice Context Pin
Ryan McFarren5-Jul-01 7:33
Ryan McFarren5-Jul-01 7:33 
GeneralRe: Device Context Pin
Tim Deveaux5-Jul-01 8:29
Tim Deveaux5-Jul-01 8:29 
QuestionHow can I have multiple fonts per line using DrawTextEX? Pin
Bart-Man5-Jul-01 6:23
Bart-Man5-Jul-01 6:23 
AnswerRe: How can I have multiple fonts per line using DrawTextEX? Pin
Jim Crafton5-Jul-01 7:29
Jim Crafton5-Jul-01 7:29 
GeneralRe: How can I have multiple fonts per line using DrawTextEX? Pin
Bart-Man5-Jul-01 8:32
Bart-Man5-Jul-01 8:32 
GeneralFound a solution to the problem!! Pin
Bart-Man5-Jul-01 9:37
Bart-Man5-Jul-01 9:37 
GeneralDS problem Pin
Mihail5-Jul-01 6:02
Mihail5-Jul-01 6:02 
GeneralRe: DS problem Pin
Carlos Antollini5-Jul-01 6:17
Carlos Antollini5-Jul-01 6:17 
GeneralRe: DS problem Pin
Mihail5-Jul-01 6:54
Mihail5-Jul-01 6:54 
Generalado and excel Pin
Gérald Mercet5-Jul-01 5:39
Gérald Mercet5-Jul-01 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.