• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 432
  • Last Modified:

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.
0
yarlapati
Asked:
yarlapati
1 Solution
 
_corey_Commented:
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
0
 
novitiateCommented:
0
 
waysideCommented:
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
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now