View Single Post
  #1  
Old April 19th 06, 12:15 PM posted to microsoft.public.outlook.program_forms
StupidDog
external usenet poster
 
Posts: 7
Default about CItems's Add method???

i write some code.
like this....
i have got the mailfolder. so.. i write code like...

CItems m_Items;
CMailItem m_NewMail;
VARIANT vt;
VariantInit(&vt);
m_Items = theApp.m_MailFolder.get_Items();
m_NewMail = m_Items.Add(vt); //compiler say here is error

i want get the CMailItem by m_Items.Add(vt) method. but the Add method have
a parameter, the parameter's type is VARIANT .
i don't know how to give the parameter to m_Items.Add method.
PLease help me, thank you!
--
只要决心成功,失败永远不会把我击垮!
Ads