about CItems's Add method???

S

StupidDog

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top