FBL_ArraySet from FBL_BitSet
Arthur Clemens
aclemens at xs4all.nl
Sat Jun 21 14:52:01 CDT 2003
I found the solution.
The code does work when do not use:
FBL_ArraySet* pAS = new FBL_ArraySet(pS1);
but instead:
FBL_ArraySet* pAS = new FBL_ArraySet(*pS1);
I don't know if this is a fault in the documentation, or related to the
Project Builder framework.
Arthur
>
> I am trying to do something like in de documentation, VSDK Reference
> page 49:
> First I create a BitSet with all records, then I create a new ArraySet
> to which the BitSet should be copied, using the BitSet as parameter
> in the ArraySet constructor.
> This is all following the docs.
>
> But it seems i nmy case the BitSet does not get copied...
>
> This is the code from my test:
>
> FBL_BitSet* pS1 = _wordTable.SelectAllRecords();
> cout << "number of records pS1: " << pS1->GetCount() << endl;
> FBL_ArraySet* pAS = new FBL_ArraySet(pS1);
> delete pS1;
> ulong Count = pAS->GetCount();
> cout << "number of records pAS: " << Count << endl;
>
>
> This is what I get:
> number of records pS1: 200
> number of records pAS: 0
>
>
> I am using VSDK.framework 1.9.7 for Project Builder.
>
> Arthur Clemens
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
>
More information about the Valentina
mailing list