[fpc-devel] Dialog Unit in TP7.0

Daniël Mantione daniel.mantione at freepascal.org
Tue Nov 7 08:16:24 CET 2006



Op Mon, 6 Nov 2006, schreef Aline Ribeiro:

> Please help someone who knows almost nothing about programming.
> 
> Because of a Heap Overflow Error, I'm trying to run an old TP program using
> the Free Pascal compiler. But, although in TP 7.0 the program was running,
> in Free Pascal it doesn't even pass the Compilation phase. I get a error for
> using the Dialog.TPU unit: "Error: Overridden methods must have the same
> return type: 'TinputLine.DataSize:Dword' is overriden by
> 'TinputLine.DataSize:Word' which has another input type."
> 
> So far, I've tried everything that I know (=almost nothing) and simply don't
> know what to do!!! Can anyone give me a hint??!

Well, simply change the return type, i.e. change the word into a dword and 
things should work better.

Daniël Mantione


More information about the fpc-devel mailing list