Click here to Skip to main content
15,887,027 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: Retrieve data field from HL7 message in VC++ Pin
Stuart Dootson22-Apr-09 5:28
professionalStuart Dootson22-Apr-09 5:28 
GeneralRe: Retrieve data field from HL7 message in VC++ Pin
David Crow22-Apr-09 5:37
David Crow22-Apr-09 5:37 
GeneralRe: Retrieve data field from HL7 message in VC++ Pin
Abhijit D. Babar24-Apr-09 0:17
Abhijit D. Babar24-Apr-09 0:17 
AnswerRe: Retrieve data field from HL7 message in VC++ Pin
Abhijit D. Babar24-Apr-09 0:21
Abhijit D. Babar24-Apr-09 0:21 
QuestionEmail Notification for Outlook Express 6 Pin
ganesh.dp22-Apr-09 1:28
ganesh.dp22-Apr-09 1:28 
AnswerRe: Email Notification for Outlook Express 6 Pin
Divyang Mithaiwala22-Apr-09 1:33
Divyang Mithaiwala22-Apr-09 1:33 
GeneralRe: Email Notification for Outlook Express 6 Pin
ganesh.dp22-Apr-09 1:52
ganesh.dp22-Apr-09 1:52 
QuestionRe: Email Notification for Outlook Express 6 Pin
David Crow22-Apr-09 5:28
David Crow22-Apr-09 5:28 
AnswerRe: Email Notification for Outlook Express 6 Pin
Divyang Mithaiwala22-Apr-09 18:46
Divyang Mithaiwala22-Apr-09 18:46 
QuestionRe: Email Notification for Outlook Express 6 Pin
David Crow22-Apr-09 5:31
David Crow22-Apr-09 5:31 
AnswerRe: Email Notification for Outlook Express 6 Pin
Stuart Dootson22-Apr-09 5:44
professionalStuart Dootson22-Apr-09 5:44 
QuestionFunction Pointers in Classes Pin
Arsalan Malik22-Apr-09 0:01
Arsalan Malik22-Apr-09 0:01 
AnswerRe: Function Pointers in Classes Pin
Stephen Hewitt22-Apr-09 0:25
Stephen Hewitt22-Apr-09 0:25 
GeneralRe: Function Pointers in Classes Pin
Arsalan Malik23-Apr-09 23:21
Arsalan Malik23-Apr-09 23:21 
QuestionRe: Function Pointers in Classes Pin
ParagPatel22-Apr-09 0:25
ParagPatel22-Apr-09 0:25 

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.