Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-11

Dialog Unit in TP7.0

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aline Ribeiro

Hi Folks!

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??!

Thanks a lot!!

Aline Ribeiro

Reply by email

Daniël Mantione
to Aline Ribeiro

Op Mon, 6 Nov 2006, schreef Aline Ribeiro:

Show quoted text 11 lines
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

Reply by email

Aline Ribeiro
to Daniël Mantione

Thanks for your help, Daniel!

Aline Ribeiro

Earlier message 30 lines
-----Original Message----- From: On Behalf Of Daniël Mantione Sent: Tuesday, November 07, 2006 5:16 AM To: FPC developers' list Subject: Re: [fpc-devel] Dialog Unit in TP7.0 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

Reply by email