dsgnintf.dcu 找不到的解决方案(原)
这是我D7下装coolform控件时遇到的这个问题哈。
1、添加 lib/designide.dcp到控件的dpk文件的requires部分
2、在控件的pas源文件中凡是uses dsgnintf的地方改成
uses designintf,designeditors
3、加入搜索路径
C:/Program Files/Borland/Delphi7/Source/ToolsAPI
4、implementation部分把Proxies隐掉
uses DesignConst, Consts, RTLConsts, Contnrs{Proxies};
5、找到并把
if (FAncestor = nil) and (Component <> Designer.Root)
and IsProxyClass(Component.ClassType) then
改为
if (FAncestor = nil) and (Component <> Designer.Root)
{and IsProxyClass(Component.ClassType)} then
6、找到并把
while IsProxyClass(ComponentClass) do
改为
//while IsProxyClass(ComponentClass) do
7、保存,编译运行,OK
附件为我原来下载的文件做成的dpk形式哈
1、添加 lib/designide.dcp到控件的dpk文件的requires部分
2、在控件的pas源文件中凡是uses dsgnintf的地方改成
uses designintf,designeditors
3、加入搜索路径
C:/Program Files/Borland/Delphi7/Source/ToolsAPI
4、implementation部分把Proxies隐掉
uses DesignConst, Consts, RTLConsts, Contnrs{Proxies};
5、找到并把
if (FAncestor = nil) and (Component <> Designer.Root)
and IsProxyClass(Component.ClassType) then
改为
if (FAncestor = nil) and (Component <> Designer.Root)
{and IsProxyClass(Component.ClassType)} then
6、找到并把
while IsProxyClass(ComponentClass) do
改为
//while IsProxyClass(ComponentClass) do
7、保存,编译运行,OK
附件为我原来下载的文件做成的dpk形式哈