Click here to Skip to main content
15,894,405 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIObjectSafety Pin
siva45522-Apr-09 8:20
siva45522-Apr-09 8:20 
AnswerRe: IObjectSafety Pin
CPallini22-Apr-09 9:01
mveCPallini22-Apr-09 9:01 
QuestionMouse movements & MOUSEEVENTF_MOVE versus Scroll & Highlight Pin
THAQCD22-Apr-09 6:41
THAQCD22-Apr-09 6:41 
Questionhighlight words in text to speech Pin
Member 282845222-Apr-09 6:18
Member 282845222-Apr-09 6:18 
AnswerRe: highlight words in text to speech Pin
ThatsAlok22-Apr-09 21:41
ThatsAlok22-Apr-09 21:41 
Questionhow to change sound devices in C++ or C# Pin
wgh1689922-Apr-09 5:17
wgh1689922-Apr-09 5:17 
QuestionImplementing a Scroll in an MFC dialog with an OpenGL window Pin
yousuf_227922-Apr-09 4:29
professionalyousuf_227922-Apr-09 4:29 
QuestionSafe ActiveX control.. Pin
p_196022-Apr-09 4:04
p_196022-Apr-09 4:04 
AnswerRe: Safe ActiveX control.. Pin
frx9622-Apr-09 17:10
frx9622-Apr-09 17:10 
Questiontab control and property pages problem Pin
Mihai Andrei Dragnea22-Apr-09 2:40
Mihai Andrei Dragnea22-Apr-09 2:40 
AnswerRe: tab control and property pages problem Pin
_AnsHUMAN_ 22-Apr-09 2:57
_AnsHUMAN_ 22-Apr-09 2:57 
GeneralRe: tab control and property pages problem Pin
Mihai Andrei Dragnea22-Apr-09 3:39
Mihai Andrei Dragnea22-Apr-09 3:39 
AnswerRe: tab control and property pages problem Pin
David Crow22-Apr-09 4:50
David Crow22-Apr-09 4:50 
GeneralRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:09
FISH78622-Apr-09 9:09 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:11
David Crow22-Apr-09 9:11 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:19
FISH78622-Apr-09 9:19 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:22
David Crow22-Apr-09 9:22 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:24
FISH78622-Apr-09 9:24 
QuestionRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:27
David Crow22-Apr-09 9:27 
AnswerRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:28
FISH78622-Apr-09 9:28 
GeneralRe: tab control and property pages problem Pin
David Crow22-Apr-09 9:41
David Crow22-Apr-09 9:41 
GeneralRe: tab control and property pages problem Pin
FISH78622-Apr-09 9:59
FISH78622-Apr-09 9:59 
QuestionCDO mail header setting please help Pin
only_jack22-Apr-09 2:25
only_jack22-Apr-09 2:25 
hi,
this is a part of a mail function that uses CDO.
function works well with normal fields & settings and sends mail very good
but i cound not set the header part of a e-mail.
so , Importance is one of headers that i want to set .
but it does not work

could you help me to set importance header with this code block.
the bold part of code what i did so far but no succeed.

thanks in advance

note: i did not add whole function because it is too long


--------------------------------------------------------
CoInitialize(NULL);

HRESULT hr = NULL;
IMessage *pMsg;
IConfiguration *pConfig;
Fields *pFields;
Field *pField;

hr = CoCreateInstance(__uuidof(Message),
NULL,CLSCTX_INPROC_SERVER,__uuidof(IMessage),reinterpret_cast<void**>(&pMsg));

hr = CoCreateInstance(__uuidof(Configuration),
NULL,CLSCTX_INPROC_SERVER,__uuidof(IConfiguration),reinterpret_cast<void**>(&pConfig));

pConfig->get_Fields(&pFields);


COleVariant sFname((LPCTSTR)"urn:schemas:mailheader:Importance");
pFields->get_Item(sFname.Detach(),&pField);
COleVariant sImportance((LPCTSTR)"high");
pField->put_Value(sImportance.Detach());


pFields->Update();
pMsg->put_Configuration(pConfig);

hr = pMsg->Send();

if (FAILED(hr))
{
_com_error err(hr);
szReturnVal = err.ErrorMessage();
}

if (pFields)
{
pFields->Release();
}
if (pField)
{
pField->Release();
}
if (pMsg)
{
pMsg->Release();
}
if (pConfig)
{
pConfig->Release();
}

CoUninitialize();
QuestionRetrieve data field from HL7 message in VC++ Pin
Abhijit D. Babar22-Apr-09 1:55
Abhijit D. Babar22-Apr-09 1:55 
QuestionRe: Retrieve data field from HL7 message in VC++ Pin
David Crow22-Apr-09 4:58
David Crow22-Apr-09 4:58 

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.