trichview.com

trichview.support




EAccess Violation in AppendRVFFromStream.


Return to index


Author

Message

dekavita

Posted: 06/21/2004 4:07:31


[EAccess Violation Error] appears with AppendRVFFromStream if I practice the

following Source Code.

Please make a correction.


src and dst is TCustomRichView*

-- C++Builder 6 Source Code ---


  TRVTableItemInfo* table =

    new TRVTableItemInfo( 1, 2, src->RVData );

  table->Cells[0][0]->Clear();

  table->Cells[0][0]->AddNLWTag("Name",0, 1, 0);

  src->AddItem("",table);

  src->Format();


  TMemoryStream *Stream = new TMemoryStream();

  src->SaveRVFToStream( Stream, false );

  Stream->Position = 0;

  dst->AppendRVFFromStream( Stream, 0 );

  delete Stream;





Powered by ABC Amber Outlook Express Converter