trichview.support
Re: Compilation error on event OnPrintComponent of TRVPrint |
Author |
Message |
Sergej |
Posted: 10/16/2003 9:20:49 Thank you. I have restored file from CVS and then I have changed the Sender argument type from TRVPrint to TCustomRVPrint. After that the project has been successfully compiled. "Sergey Tkachenko" <[email protected]> wrote: >Since version 1.6, a type of the first parameter of this event is changed >(from TRVPrint to TCustomRVPrint). >In your project you need to change all declarations of this event where this >event is used. >It's not necessary to reassign the event, you can simply edit the code >yourself (change Sender: TRVPrint to Sender: TCustomRVPrint). > >As for this error message. May be Delphi still tries to compile your project >with the old version of TRichView (even though the new version is >installed): the new version generates "Sender: TCustomRVPrint", the old >version expects "Sender: TRVPrint". >Search your hard drive for files of the old version and delete them (or move >from the paths where Delphi searches for units) > > >> >> I had yesterday downloaded the new version 1.7.30. And after >> upgrade from version 1.5 I got one problem with the TRVPrint >> component. The syntax of the PrintComponent was cahnged. I had >> reassigned new event handler and now have compilation error: >> "Declaration of 'RVPrint1PrintComponent' differs from previous >declaration" >> >> The error occurs also with empty implementartion of the handler >> (please see below). >> Could you please help me? >> >> Declaration in my class (auto generated): >> ----------------------------------------- >> procedure RVPrint1PrintComponent(Sender: TCustomRVPrint; >> PrintMe: TControl; var ComponentImage: TBitmap); >> >> Empty implementation: >> --------------------- >> procedure TFormPrintPreview.RVPrint1PrintComponent(Sender: TCustomRVPrint; >> PrintMe: TControl; var ComponentImage: TBitmap); >> begin >> // >> end; >> > > |
Powered by ABC Amber Outlook Express Converter