not find ComponentDesigner.pas ComponentDesigner.dcu 解决方法

  • DELPHI7


http://blog.csdn.net/highroad/article/details/4782955

编译发现还是组件中找不到DesignIntf.pas、Proxies.pas、ComponentDesigner.pas等源文件,网上查找但没有几个能解决问题。后来找到一个办法,即在组件包中加入一个delphi7带的DesignIde.dcp,如下红色标识的代码。

      Delphi如过眼云烟,现在用的人越来越少了。记如此,或者对还在坚持的人们有点帮助吧。

 

package tb2kdsgn_d7;

requires
  vcl,
  dclstd,
  DesignIde,
  tb2k_d7;

contains
  TB2Reg in 'TB2Reg.pas',
  TB2DsgnItemEditor in 'TB2DsgnItemEditor.pas' {TBToolbarEditForm},
  TB2DsgnConverter in 'TB2DsgnConverter.pas' {TBConverterForm},
  TB2DsgnConvertOptions in 'TB2DsgnConvertOptions.pas' {TBConvertOptionsForm};

end.


  • C++Builder6

Not Found ComponentDesigner.dcu 解决方法

曾经遇到过这个问题,在GOOGLE上几乎搜不到答案,只好努力看懂E文,终究功夫不负有心人,在一个网页上找到答案,这个网页的网址是:http://www.delphigroups.info/3/11/104950.html,引用里鬼老的E文.抄过来如下:

The Package Project requires designide.bpi.
Additional I have to insert the flag -LUDesignIde to
the <PFLAGS element of the XML package project.
Only then the compiler belive that the unit ComponentDesigner
is available.
I found no description of the flag -LU. What is the
meaning of this flag or where is it described ?
best regards
Martin Kaul

项目需要DesignIDE.bpi这个包,而且还要在工程文件(*.bpr)中的PFLAGS元素中-LUDesignIde标识。编译器才会认识ComponentDesigner。后面的就不会,废话来的。


在命令行中打下:dcc32 /?

可以查到-LU选项的description,如下:

-LU<package> = Use package

http://blog.csdn.net/xuanner/article/details/5644430


cnwizard的bpr工程里选项是

<PFLAGS value="-N2..\Dcu -N0..\Dcu -$Y+ -$W -$O- -$A8 -LUvcl;designide -v -JPHNE -M"/>

打开安装包工程文件,用notepad++打开bpk,加入-LUvcl;designide果然好了!

<PFLAGS value="-$YD -$W -$O- -$A8 -LUvcl;designide -v -JPHNE -M"/>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值