Link to home
Start Free TrialLog in
Avatar of yarlapati
yarlapati

asked on

Convert CComBSTR to COleDateTime

Hi all,

Not sure but is it possible to convert from CComBSTR to COleDateTime.

If so how is it possible.

Thanks,
K.
Avatar of _corey_
_corey_

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/htm/chap7_6vhh.asp ["VariantChangeType"] can be used to coerce/change different VARIANT types.  I'm unsure if or what format a BSTR to DATE is, and if it is possible.

The COleDateTime class uses the VT_DATE variant type.

corey
ASKER CERTIFIED SOLUTION
Avatar of novitiate
novitiate

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: novitiate

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

wayside
EE Cleanup Volunteer