Success using I_ValueDateTime_Ptr; but how to use I_ValueDate_Ptr and I_ValueTime_Ptr?

Ruslan Zasukhin sunshine at public.kherson.ua
Fri Jun 30 10:05:55 CDT 2006


On 6/30/06 8:24 AM, "Matthew Jew" <mjew at icnc.com> wrote:

Hi Matthew,
 
> I have been able to set DateTime fields like this:
> 
> I_ValueDateTime_Ptr pvdt = fbl_dynamic_cast<I_ValueDateTime>
> ( aAuthFailureLogTable.loginDateTime->get_Value(forAdd) );
> pvdt->put_DateTime( aDateTimeRec->year, aDateTimeRec->month,
> aDateTimeRec->day, aDateTimeRec->hour, aDateTimeRec->minute,
> aDateTimeRec->second, 0 );
> 
> but when I try to do the equivalent thing for Date fields and Time
> fields, it doesn't even compile:
> 
> I_ValueDate_Ptr pvd = fbl_dynamic_cast<I_ValueDate>( anArticleTable-
>> date->get_Value(forAdd) );
> pvd->put_Date( aDateTimeRec.year, aDateTimeRec.month,
> aDateTimeRec.day );
> I_ValueTime_Ptr pvt = fbl_dynamic_cast<I_ValueTime>( anArticleTable-
>> time->get_Value(forAdd) );
> pvt->put_Time( aDateTimeRec.hour, aDateTimeRec.minute,
> aDateTimeRec.second, 0 );
> 
> 
> /Volumes/Alpha2/Dev-NuPV/PVReplicator2/../Common-Classes/Valentina2pv/
> ArticleDBManager2.mm:230: error: 'I_ValueDate_Ptr' was not declared
> in this scope

Strange...sounds like you you no included header FBL_I_ValueDate.h

Here in this header you can see:

    SMART_INTERFACE(I_ValueDate);

Which defines this I_ValueDate_Ptr


Although this header should be included via VSDK.h, which you use, right ?
You should use ONLY and ONLY <VSDK.h>




-- 
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