Matt Emson wrote:
[...]
2) use the following trick in your local code:
type TMyclashingType = UnitIWantToUse.TMyClashingType;
so in your case:
type PicHandle = common.PicHandle;
Solution 1 is more favourable though. Solution 2 will only work if luck is
on your side and you do not require procedures or functions from both units
that take the type as a param.
[...]
Actually, you can also do this trick with procedures or functions
(although this time it's really really dirty trick):
Suppose you have MyFunction declared in MyUnit unit. You want to export
MyFunction in other unit that uses MyUnit:
const
MyFunction: function(... MyFunction params...): ...MyFunction
result... = MyUnit.MyFunction;
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal