Thanks,
unfortunately tihs must be one of those times when the VB
and C++ go their separate ways as there is no "Folders"
method within the ContactsFolder object.
ie: I can do this:
MAPIFolder pNewFolder = pFldrContact.GetFolders()
but I can't do this:
MAPIFolder pNewFolder = pFldrContact.Folders.Add
and unfortunately their is no "Add" method in the former
and the latter just doesn't exist for Folders. So I'm at a
loss once again.
Thanks for the effort though.
Someone really ought to write a c++ book.
>-----Original Message-----
>set ContactsFolder = Application.Session.GetDefaultFolder(olFolderContacts)
[quoted text clipped - 16 lines]
>
>.
Dmitry Streblechenko - 16 Aug 2003 00:42 GMT
It really doesn't make a difference whether you are using
VB/C++/Delphi/whatever - the language syntax is different, plus VB lets you
use default methods/properties implicitly. Why can't you use something like
MAPIFolder pNewFolder = pFldrContact.GetFolders()->Add("whatever",
olFolderContacts)
In the worst case look at the header file with the wraper classes created by
VC++ when you imported the type library to figure out the correct names and
parameters.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Thanks,
>
[quoted text clipped - 39 lines]
> >
> >.