How to use put_DateTime

Matthew Jew mjew at icnc.com
Fri May 26 13:08:52 CDT 2006


> On 5/25/06 4:44 AM, "Matthew Jew" <mjew /AT/ icnc .DOT com> wrote:
>
> > That works very well when adding records; however, it does not work
> > for simply reading values.
> >
> > When I use:
> >
> > Const_I_Value_Ptr pv = aAuthLogTable.loginDateTime->get_Value();
> >
> > I_ValueDateTime_Ptr pvdt = fbl_dynamic_cast<I_ValueDateTime >(pv);
> >
> > pvdt->get_DateTime( .... );
>
> Can you show full your code here?
>
> > I get a compilation error.
>
> What error?
>
>
>
> virtual void get_DateTime(
> long& outYear,
> ushort& outMonth,
> ushort& outDay,
> ushort& outHours,
> ushort& outMinutes,
> ushort& outSeconds,
> ushort& outMilliseconds ) const
>
>
> Note, It returns references via parameters.
>
>
> -- Best regards,
>
> Ruslan Zasukhin

Ruslan,

The error I get is NOT in the get_DateTime(...) line; that is why I  
did not include it.

The error is with the line

I_ValueDateTime_Ptr pvdt = fbl_const_cast<I_ValueDateTime> 
( aRelaunchLogTable.relaunchDateTime->get_Value() );

sources/VShared/FBL/publ/Templates/FBL_Smart_Ptr.h:51: error: cannot  
convert 'const fbl::I_Value*' to 'const fbl::I_ValueDateTime*' in  
initialization

- Matthew




More information about the Valentina mailing list