On 11/04/2011 17:32, Dave Keighan wrote:
> Actually, from further reading I have the impression the no one uses 
> WinProcs anymore so why it even exists in any tiOPF unit is now a total 
> mystery to me.

You are probably right. There are many units that could be removed from
various uses clauses. FPC is quite good at reporting those, but
obviously I can't just remove them without first testing under Delphi
too - the latter being a bit of a problem for me. I have an old VM
session with Windows 2000 and Delphi 7, but very seldom fire it up,
because it's only used for maintaining our legacy software.

For the last couple of years I have only developed [cross-platform]
software under Linux with FPC, and use Windows purely for testing our
applications.

As for the VCL tiDialogs unit... It is used in combination with Lazarus
LCL too, but I gave up a long time ago trying to have single source code
between VCL and LCL. This littered the code with too many IFDEF lines,
and at the time Lazarus's form designer was too buggy with composite
components.

These days I recommend to start a new set of "gui" units for each
toolkit used with tiOPF. I have done this with fpGUI to great success -
it has its own tiDialog, tiGUIINI etc... Thus no need for IFDEF any
more. So we should really split VCL and LCL components like that too.
But I would leave that job to somebody that actually uses LCL... I only
use fpGUI, and I already have enough work on my plane. Maybe I'll get
around to in sometime in the future. ;-)


Bottom line: If you use Delphi, then simply remove that unit from the
tiDialog uses clause and see if the tiDialog unit still compiles. If it
does, then the problem is solved.


-- 

     Graeme Geldenhuys (System Analyst / Programmer)
               [email protected]
----------------------------------------------------------
Master Maths Head Office               Tel: (021) 851 5660
PO Box 573 ยท Somerset West             Fax: (021) 851 5300
7129
                 www.mastermaths.co.za



------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
tiOPF-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tiopf-talk

Reply via email to