您的位置:程序门 -> delphi -> vcl组件开发及应用



关于 tframe 在不同 bpl 项目中重复使用 ?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


关于 tframe 在不同 bpl 项目中重复使用 ?[已结贴,结贴人:tengxiang05]
发表于:2007-08-21 15:25:37 楼主
项目   publib.bpl   :公共的东东,
      其中有一个   tbaseframe   =   class(tframe)   的frame
      然后把它加到组件板里去,
      编绎   publib.bpl   通过

另一项目   information.bpl   中
    创建一个窗体:   单击组件板上刚才加的那个   baseframe图标,  
    把这个frame   加到form   上来时,有个提示
                  the   following   unit:   baseformunit,   is   needed   in   your   project   to   create   the   template,   do   yoy   wish   to   add   it   ?  

    然后在工程单元中多了,下面这一句
contains
          baseframeunit   in   '..\..\..\publib\pubfun\baseframeunit.pas'   {baseframe:   tframe};

    编绎   information.bpl,有以下错误提示
[error]   information.dpk(43):   package   'publib'   already   contains   unit   'baseframeunit'
------------------------
情况就是这么个情况,
怎么解决??

怎么让publib那frame被别的项目复用,
发表于:2007-08-21 15:45:421楼 得分:100
up


快速检索

最新资讯
热门点击