Click here to Skip to main content
15,914,794 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblems in Enumerating network Pin
abdul moeed25-May-04 21:12
abdul moeed25-May-04 21:12 
GeneralRe: Problems in Enumerating network Pin
David Crow26-May-04 3:15
David Crow26-May-04 3:15 
GeneralRe: Problems in Enumerating network Pin
abdul moeed26-May-04 19:05
abdul moeed26-May-04 19:05 
GeneralRe: Problems in Enumerating network Pin
David Crow27-May-04 2:31
David Crow27-May-04 2:31 
GeneralRe: Problems in Enumerating network Pin
abdul moeed27-May-04 19:08
abdul moeed27-May-04 19:08 
General1 function multiple buttons Pin
V.25-May-04 21:01
professionalV.25-May-04 21:01 
GeneralRe: 1 function multiple buttons Pin
Johan Rosengren25-May-04 21:32
Johan Rosengren25-May-04 21:32 
GeneralSetting plain text in Outlook Pin
ptrbr25-May-04 20:52
ptrbr25-May-04 20:52 
Hi folks,

I have the problem, that I want sent a bill as Email from a C++ Application over Outlook. So I want set the Email to plain text or alternative to set the font to Courier etc.

This is my Eample:

void CMyClass::SendEmail()
{
CString sStr, sMsg, sSubject;
_Application olApp;
COleException e;
double price1 = 100000;
double price2 = 20000;

if(!olApp.CreateDispatch("Outlook.Application", &e)) {
CString str;
str.Format("CreateDispatch() failed w/error 0x%08lx", e.m_sc);
AfxMessageBox(str, MB_SETFOREGROUND);
return;
}

_NameSpace olNs(olApp.GetNamespace("MAPI"));
COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
olNs.Logon(covOptional, covOptional, covOptional, covOptional);

_MailItem olMail(olApp.CreateItem(0));
olMail.SetTo("test@domain.com");
olMail.SetSubject("My bill");

sStr.Format("Item1:%#30.02", price1);
sMsg += sStr;

sStr.Format("Item2:%#31.02", price2);
sMsg += sStr;

olMail.SetBody(sMsg);
olMail.Display(covOptional);
olNs.Logoff();
}


Who can help ?
Confused | :confused:
Questionhow to override the Close or X button of a FormView Pin
elephantstar25-May-04 19:58
elephantstar25-May-04 19:58 
AnswerRe: how to override the Close or X button of a FormView Pin
*Dreamz25-May-04 20:33
*Dreamz25-May-04 20:33 
GeneralRe: how to override the Close or X button of a FormView Pin
elephantstar26-May-04 6:14
elephantstar26-May-04 6:14 
GeneralRe: how to override the Close or X button of a FormView Pin
*Dreamz26-May-04 17:44
*Dreamz26-May-04 17:44 
GeneralRe: how to override the Close or X button of a FormView Pin
elephantstar3-Jun-04 8:24
elephantstar3-Jun-04 8:24 
GeneralRe: how to override the Close or X button of a FormView Pin
*Dreamz3-Jun-04 17:38
*Dreamz3-Jun-04 17:38 
GeneralRPC Pin
Member 115017625-May-04 19:30
Member 115017625-May-04 19:30 
GeneralRe: RPC Pin
David Crow26-May-04 3:18
David Crow26-May-04 3:18 
Generalfirst message Pin
mf1425-May-04 19:18
mf1425-May-04 19:18 
GeneralRe: first message Pin
Roger Allen26-May-04 2:33
Roger Allen26-May-04 2:33 
Questionhow to search through an external file Pin
foxele25-May-04 19:04
foxele25-May-04 19:04 
AnswerRe: how to search through an external file Pin
Curi0us_George25-May-04 19:14
Curi0us_George25-May-04 19:14 
QuestionHow Long Will It Take Pin
---Mark---25-May-04 19:04
---Mark---25-May-04 19:04 
AnswerRe: How Long Will It Take Pin
Curi0us_George25-May-04 19:20
Curi0us_George25-May-04 19:20 
AnswerRe: How Long Will It Take Pin
Bob Stanneveld25-May-04 21:01
Bob Stanneveld25-May-04 21:01 
AnswerRe: How Long Will It Take Pin
David Crow26-May-04 3:21
David Crow26-May-04 3:21 
GeneralRe: How Long Will It Take Pin
Antony M Kancidrowski26-May-04 4:01
Antony M Kancidrowski26-May-04 4:01 

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.