Syntax for updating blob fields in C++ VSDK

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Oct 12 23:08:07 CDT 2006


On 10/12/06 10:07 PM, "Matthew Jew" <mjew at icnc.com> wrote:

> Hello,
> 
> I am having difficulty figuring out the syntax for doing an update in
> a blob field using the C++ API VSDK.
> 
> I can do this:
> 
> I_FldBlob_Ptr pBlobField = dynamic_cast< I_FldBlob* >
> (aHTMLTemplateTable->valueText.get());


> pBlobField->WriteData( (const char*) templateBodyC,
> templateBodyLength );
 
> and it compiles, but at runtime, it complains:
> 
> Error code        : 525582
> Error description: Field "valueText": value was not prepared for
> Update.

Do you have after WriteData() call
    
    aHTMLTemplateTable.UpdateRecord()

?

 
> I am not sure where the ->get_Value( forUpdate ) goes.
> 
> I have tried to place it in various positions, like I do for a normal
> field update:
> 
> aNewsgroupTable->articleTag->get_Value(forUpdate)->put_String
> ( articleTag );
> 
> but I can't get it to compile.
> 
> What is the syntax for accomplishing this?

I am sure we have example API_Way/... That work with BLOBs


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