S
Semut
In VB codes,
Dim objItem As Object <----declare objItem as Object.
Dim objNS As NameSpace
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objItem = objApp.ActiveInspector.CurrentItem
If objItem.Class = olContact Then <---- can easily determine it's type.
....
But how to call this in C++? What are the equivalent of Object class in C++?
For instance, I obtain the Outlook::Items collection from the
Outlook::Folder, then, For each of the item in the Outlook::Items
colelction, it will return me a IDispatch. What are the function or
utilities for me to determine the type of the item it returns? I can use
IDispatch and place it into ContactItem, TaskItem or MailItem. But does
Outlook has a primitive object type like VB Object class so that I could
check if the item is of which item type. I know VB has it, but how about
C++?
thank you
Dim objItem As Object <----declare objItem as Object.
Dim objNS As NameSpace
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objItem = objApp.ActiveInspector.CurrentItem
If objItem.Class = olContact Then <---- can easily determine it's type.
....
But how to call this in C++? What are the equivalent of Object class in C++?
For instance, I obtain the Outlook::Items collection from the
Outlook::Folder, then, For each of the item in the Outlook::Items
colelction, it will return me a IDispatch. What are the function or
utilities for me to determine the type of the item it returns? I can use
IDispatch and place it into ContactItem, TaskItem or MailItem. But does
Outlook has a primitive object type like VB Object class so that I could
check if the item is of which item type. I know VB has it, but how about
C++?
thank you