ERROR Declaration differs from previous declaration

General TRichView support forum. Please post your questions here
Post Reply
[email protected]
Posts: 5
Joined: Mon Jan 30, 2012 6:24 am

ERROR Declaration differs from previous declaration

Post by [email protected] »

I am using Delphi7. Whenever I add an event handler such as RichViewEdit1ReadHyperlink that contains TRVRawByteString, I get an error "Declaration of 'RichViewEdit1ReadHyperlink' differs from previous declaration".

What can I do to fix this?
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

It may happen if Delphi uses one version of TRichView components at designtime, but another version at runtime.
Find files of the old version of TRichView and delete them. Recompile the packages of the new version.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

PS: please check that declaration of 'RichViewEdit1ReadHyperlink' are identical in the interface and the implementation sections of your unit.
[email protected]
Posts: 5
Joined: Mon Jan 30, 2012 6:24 am

Post by [email protected] »

Thanks for the prompt reply, found it, problem solved.
Post Reply