Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Outlook::_MailItem and put_DeferredDeliveryTime

Geek News

Outlook::_MailItem and put_DeferredDeliveryTime
"Sharanga Dayananda" <sharanga[ at ]gmail.com> 5/25/2007 2:17:33 PM
Hi

An Outlook::_MailItem object in the Outlook object model supports a method
called put_DeferredDeliveryTime()

To set the value for this structure in C++ the put method requires a DATE
object. I don't seem to be able to figure out what this structure is.
<wtypes.h> seems to define this as a double.

I expected the actual value in the MAPI directory structure to be a
PT_SYSTIME.

How can I set this value? If it is a double, how do I calculate what value
to set for a Gregorian date?

Cheers
Sharanga


Re: Outlook::_MailItem and put_DeferredDeliveryTime
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 5/27/2007 9:31:40 PM
In COM you can only use the standard DateTime value, which is indeed double
under the hood - the integer part is the number of days since Jan 1, 1900
and the fractional part is the time of the day.
There are numerous functions that convert COM date/time to just about
anything else (FILETIME, etc).

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Sharanga Dayananda" <sharanga[ at ]gmail.com> wrote in message
news:uOd9vdtnHHA.4624[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> Hi
>
> An Outlook::_MailItem object in the Outlook object model supports a method
> called put_DeferredDeliveryTime()
>
> To set the value for this structure in C++ the put method requires a DATE
> object. I don't seem to be able to figure out what this structure is.
> <wtypes.h> seems to define this as a double.
>
> I expected the actual value in the MAPI directory structure to be a
> PT_SYSTIME.
>
> How can I set this value? If it is a double, how do I calculate what value
> to set for a Gregorian date?
>
> Cheers
> Sharanga
>
>


Re: Outlook::_MailItem and put_DeferredDeliveryTime
"Sharanga Dayananda" <sharanga[ at ]gmail.com> 5/29/2007 10:21:15 AM
Cheers Dmitry.

"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
news:OhNmMYKoHHA.4960[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text]
> In COM you can only use the standard DateTime value, which is indeed
> double under the hood - the integer part is the number of days since Jan
> 1, 1900 and the fractional part is the time of the day.
> There are numerous functions that convert COM date/time to just about
> anything else (FILETIME, etc).
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
> "Sharanga Dayananda" <sharanga[ at ]gmail.com> wrote in message
> news:uOd9vdtnHHA.4624[ at ]TK2MSFTNGP04.phx.gbl...
>> Hi
>>
>> An Outlook::_MailItem object in the Outlook object model supports a
>> method called put_DeferredDeliveryTime()
>>
>> To set the value for this structure in C++ the put method requires a DATE
>> object. I don't seem to be able to figure out what this structure is.
>> <wtypes.h> seems to define this as a double.
>>
>> I expected the actual value in the MAPI directory structure to be a
>> PT_SYSTIME.
>>
>> How can I set this value? If it is a double, how do I calculate what
>> value to set for a Gregorian date?
>>
>> Cheers
>> Sharanga
>>
>>
>
>


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net