File not found: MaskProp.dcu

写字板修改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

Invalid package file - *.dcp or *dpc?

I am trying to recompile some old-Delphi component in Delphi6 and now I get 'ComponentDesigner.pas' not found - as I found on web - I should install the design time package designide.dcp - but I have only files with extensions *. dcp - but Delphi is asking to files with extension *. dpc (and delphi 6 documentation mentions dpc and sometime dcp), and if I am pointing to designide.dcp - I get - 'is not a valid package collection file' (component->install packages->Packages->Add...) - what I am doing wrong?

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值