写字板修改bpk文件,加入 -LUvcl; dclstd 即可。
<PFLAGS value="-N2..\Dcu -N0..\Dcu -$Y+ -$W -$O- -$A8-LUvcl; dclstd -v-JPHNE -M"/>
install dcldxInsC6.bpk ok
https://forums.embarcadero.com/thread.jspa?threadID=67194
HI
I am porting components from Delphi7 to Delphi XE2, and started run in problems regarding MaskProp.dcu, some of the components uses this, and is looking for TMaskProperty class.
After a lot of browsing on the net i figured out that all these units is packaged in the designide.dcp.
So i have the design time component in a package that requires the designide.dcp and then the runtime component package that reguires the designtime package for the component.
In the runtime component package i get errors regarding the MaskProp.dcu and the TMaskProperty class.
I dont know what to do from here, according the articles on the net, the MaskProp.dcu should be part of the designide.dcp.
I also cant figure out/see what the contents of the designide.dcp is.
Any suggestions is welcome
Thank you in advance
The DesignIDE package contains stuff like the Open Tools API
($(BDS)\source\ToolsAPI) that can be used for component/property
editors and wizards and experts.
Since Delphi 6 designtime stuff must not longer be used at runtime and
pre Delphi 6 components that contained designtime stuff like property
editor in the same unit as the runtime stuff needs to be splitted into
different units or one has to use conditional defines to exclude the
designtime stuff at runtime.
Property editors usually depend on units like DesignIntf and
DesignEditors and these units are part of the DesignIDE package. In
order to install your package into the IDE you will have to add dclstd
and designide to the requires clause of your package.
--
Uwe Schuster | Hero of the Delphi 2010 FT
http://forums.devshed.com/delphi-programming-90/invalid-package-file--dcp-or-dpc-334413.html
If You have any normal designide.dpc file (actually I have one from normal installation, so - I am wondering what's wrong with it) - You can pu a link or send (kwedeer@yahoo.com)
Any hint or help would be great, many thanks in advance!!
You actually do not "install" the design ide package into the delphi IDE. It is not a component package. It is a design library. You simply need to add a reference to it in your application/package project.
Right click on your project in project file tree, and select "options". When the options dialog that opens, select the "Requires" folder and hit the "Add" button. In the "Requires Package" edit box type Designide.dcp and hit OK
Although it may not be strictly necessary, I would also suggest that you split your component package into 2 seperate packages - the designtime and runtime. This would help reduce the size of compiled applications that use your component packages as the linker would not implicitly link design time units.
now - I am going further and now I have to find MaskProp.dcu - but it isn't in Delphi6/lib (here is units only with Mask.dcu etc) and I hav no idea - in which dpc it could be? In other forums there is suggestion to use MaskProp.dcu from Delphi1 installation... strange thing for Delphi6
MaskProp.pas was deprecated long ago (Delphi 4-5-6..?), it's code was placed within the"designide.dcp" design-time library, and is no longer available as source files (maskprop.pas), nor as a compiled unit (maskprop.dcu).
Again, I would suggest that you refrain from using any design-time elements in your runtime code. They are meant only to be used during design-time and from within the delphi shell.
The TMaskProperty is available to your design-time components, but you may generate errors if you depend on design-time elements in your run-time code.
-Michael