Paul wrote:
> > "Solution 2" is not really trivial. It will not work if 2
> > classes share the
> > same name but are different. Eg., I can create a TMenu class in
> > unit X and
> > pass that to the DLL. It will not be able to tell if that
> class is TMenu
> > from the VCL or my TMenu class.
>
> Um, well, at the risk of being flippant: 'Don't do that then'.
Easy if you have full control over who writes the DLLs, but if you want to
expose an interface so that others (say, your business partners, VARs, etc)
can get access to it, you will need to take precautions to ensure that
mistakes are not made. So carry on and be 'flippant' :).
Dennis.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz