Click here to Skip to main content
15,915,864 members
Home / Discussions / Mobile
   

Mobile

 
QuestionAbout J2ME Pin
shamsh321015-May-06 20:14
shamsh321015-May-06 20:14 
Questionhow to launch sms messages from an embedded design Pin
AL_PL10-May-06 10:42
AL_PL10-May-06 10:42 
QuestionManaged SqlCeException Pin
Marhn10-May-06 4:56
Marhn10-May-06 4:56 
AnswerRe: Managed SqlCeException Pin
Exelioindia26-Jun-06 0:50
Exelioindia26-Jun-06 0:50 
QuestionJ2ME Pin
Trance Junkie10-May-06 4:13
Trance Junkie10-May-06 4:13 
QuestionCompilerproblem Pin
mr-smax10-May-06 2:03
mr-smax10-May-06 2:03 
Questiontransparency in java Pin
mush hashor10-May-06 0:05
mush hashor10-May-06 0:05 
QuestionPR_BODY Pin
msolh9-May-06 5:38
msolh9-May-06 5:38 
I was trying to retrieve the body of a message using the code below but
It is always returning
MAPI-E-NOT-FOUND:

hr = m_pfldrInbox->OpenEntry(
m_pInbox[msgID].lpProps[0].Value.bin.cb,
(ENTRYID*)m_pInbox[msgID].lpProps[0].Value.bin.lpb,
NULL,
MAPI_MODIFY | MAPI_DEFERRED_ERRORS,
&ulObjType,
(LPUNKNOWN*)&lpMessage);
//MessageBox(0, L"Message Opened", L"", 0);
if (SUCCEEDED(hr))
{
SPropValue * rgMsgprops = NULL;
ULONG rgMsgTags[] = {1, PR_BODY};
ULONG cCount = 0;
// IStream* istream;
ULONG ulNumChars;
// hr = lpMessage->GetProps((LPSPropTagArray) rgMsgTags, MAPI_UNICODE,
&cCount, &rgMsgprops);


hr = HrGetOneProp(lpMessage,PR_SUBJECT,&rgMsgprops);
if (hr == MAPI_E_NOT_ENOUGH_MEMORY)
{
MessageBox(0, L"Not enough memory", L"", 0);
hr = lpMessage->OpenProperty(
PR_BODY,
&IID_IStream,
STGM_READ,
NULL,
(LPUNKNOWN *) &lpStream);


do
{
lpStream->Read(
sBuffer,
255,
&ulNumChars);
// if (ulNumChars >0) printf("%.*s",ulNumChars,szBuf);
}
while (ulNumChars >= 255);


// printf("\n");


hr = S_OK;
}


else if (hr == MAPI_E_NOT_FOUND)
{
//This is not an error. Many messages do not have
bodies.
//printf("Message has no body!\n");
MessageBox(0, L"Message has no body", L"", 0);
hr = S_OK;
}
else
{


//MessageBox(0, "%d", rgMsgprops[0].Value.lpszA, 0);
int x = 0;
do
{
sBuffer[x] = rgMsgprops[0].Value.lpszW[x];
x++;
//MessageBox(0, (LPCWSTR)sBuffer, L"", 0);
//bufferlen = strlen(rgMsgprops[0].Value.lpszW);
}while (((int)rgMsgprops[0].Value.lpszW[x-1] != NULL) && (x <
255));
}
}


If you can tell what is the problem please help.
QuestionI am using embeded vc3.0 to develop Pocket PC program, the problem is that I can not connect to server and I can only copy my release appliction into disk space of Pocket PC Pin
sude8-May-06 22:11
sude8-May-06 22:11 
Question.Net Compact Framework and RAS Pin
martin_hughes8-May-06 4:17
martin_hughes8-May-06 4:17 
Questionview video Pin
vivayor kong6-May-06 3:10
vivayor kong6-May-06 3:10 
QuestionC# Wap Gateway (Proxy) For Mobile Devices Pin
MohamedShehab4-May-06 3:54
MohamedShehab4-May-06 3:54 
QuestionHow to get system information in SmartPhon or PocketPC Pin
ginee2-May-06 17:22
ginee2-May-06 17:22 
AnswerRe: How to get system information in SmartPhon or PocketPC Pin
kiran janaswamy3-May-06 0:23
kiran janaswamy3-May-06 0:23 
QuestionActive Sync Pin
Polymorpher2-May-06 17:07
Polymorpher2-May-06 17:07 
QuestionInserting Picture and wav file in MessageBox Pin
someone_blank1-May-06 23:10
someone_blank1-May-06 23:10 
Questionin EmbC++ Pin
Greg Barnes28-Apr-06 6:05
Greg Barnes28-Apr-06 6:05 
QuestionRead the audio stream in wince Pin
Rohini Gosh28-Apr-06 2:30
Rohini Gosh28-Apr-06 2:30 
QuestionOpen Source Helpdesk System Pin
mickycarty27-Apr-06 3:52
mickycarty27-Apr-06 3:52 
AnswerRe: Open Source Helpdesk System Pin
JimRoss2-May-06 11:59
JimRoss2-May-06 11:59 
QuestionSmart device UUID Pin
mtzlplyk26-Apr-06 23:01
mtzlplyk26-Apr-06 23:01 
QuestionHow to update smartphone title bar? Pin
PREMGADAVI26-Apr-06 20:50
PREMGADAVI26-Apr-06 20:50 
QuestionDisplay WinMobile device screen Pin
rnvrnv26-Apr-06 3:16
rnvrnv26-Apr-06 3:16 
QuestionHow can i import Smart Device dll to pocket pc 2003 project? Pin
arden82824-Apr-06 21:42
arden82824-Apr-06 21:42 
QuestionTypeLoad Exception Pin
someone_blank24-Apr-06 15:49
someone_blank24-Apr-06 15:49 

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.