Hi Chris,

> I am collaborating on a program with a friend of mine who has Delphi
> 2006 and I have Delphi 2005.  His program keeps adding a number of
> properties to some form files which I don't have. namely explicittop
> explicitleft explicitwidth etc.

I wrote a blog entry about these properties.

http://jedqc.blogspot.com/2006/02/d2006-what-on-earth-are-these-explicit.html

> I can compile the program ok, but if I try to run the program it dies
> a horrible death because it doesn't recognise these properties.

Yes, the streaming of the forms are failing.

> My only solution at the moment is to load each form file, change it
> slightly and resave it in D2005 to remove them.
>
> Is there another solution?

Sure. Upgrade. That aside you might be able to create a class helper
on TControl and add these properties to it (might not work for
published properties though). Not sure if that will work but might be
worth a shot.

> Is is possible for me to hack some file to enable D2005 to handle
> this error?

Not sure

> Is is possible to have compiler directives in the dfm file?

No.

You could write a standalone parser to scan the DFM files and delete
the properties from it, being that the DFM's are most likely just a
text file.

cheers,
Jeremy
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to