How to use put_DateTime

Ruslan Zasukhin sunshine at public.kherson.ua
Sat May 27 00:56:18 CDT 2006


On 5/26/06 11:08 PM, "Matthew Jew" <mjew at icnc.com> wrote:

> 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() );

Const_cast<> is wrong here.
 
> sources/VShared/FBL/publ/Templates/FBL_Smart_Ptr.h:51: error: cannot
> convert 'const fbl::I_Value*' to 'const fbl::I_ValueDateTime*' in
> initialization

When you read value you work with const value. Right?

Code must be as:

Const_I_Value_Ptr pValue = data->mpField->get_Value();

Const_I_ValueDateTime_Ptr pValueDateTime =
        fbl_dynamic_cast<const I_ValueDateTime >( pValue );


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list