A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

about CItems's Add method???



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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!
--
只要决心成功,失败永远不会把我击垮!
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict method problem Mike Epp Outlook and VBA 2 April 7th 06 08:03 PM
savemode in Close method Long Nguyen Outlook - Using Forms 2 March 30th 06 08:44 AM
Restrict Method DNW emanson Outlook and VBA 14 March 28th 06 06:47 AM
GetItemFromID method on a public folder in the namespace Robert Squire Outlook and VBA 1 February 24th 06 02:31 PM
Best method for using Outlook out of the office Bob Outlook - General Queries 1 January 31st 06 03:05 AM


All times are GMT +1. The time now is 08:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright 2004-2025 Outlook Banter.
The comments are property of their posters.