Page 1 of 1
ERROR Declaration differs from previous declaration
Posted: Sun Feb 12, 2012 6:53 am
by andre@reltrans.co.za
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?
Posted: Sun Feb 12, 2012 9:16 am
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.
Posted: Sun Feb 12, 2012 9:18 am
by Sergey Tkachenko
PS: please check that declaration of 'RichViewEdit1ReadHyperlink' are identical in the interface and the implementation sections of your unit.
Posted: Mon Feb 13, 2012 4:03 am
by andre@reltrans.co.za
Thanks for the prompt reply, found it, problem solved.