How can I make an array of COleDateTime's? Also can COleDateTime be used instead of DATE in a VARIANT structure?
Thanks
Printable View
How can I make an array of COleDateTime's? Also can COleDateTime be used instead of DATE in a VARIANT structure?
Thanks
You can simply say:
COleDateTime dates[3];
COleDateTime is a wrapper for VARIANT's DATE type. COleVariant is a wrapper for VARIANTs themselves. If you need to create a variant, you can say:
COleVariant v(dates[0]);
here, the variable "v" gets initialised as VT_DATE from the supplied COleDateTime.
I am not clear with some terminology of programers. Can you shed some light on what is a 'wrapper' and 'owner class' etc. Knowing these terms will greatly help me in understading. Please do answer this question, and any other such words that you may think will be good to learn.
Shahzad
[email protected]