The problem: Because my Crystal Report control is for Delphi5, I encountered many problems when installing it under Delphi6. Now describe in detail.
First find the control installation package and double-click Crystal.dpk. The system prompts to install to a new format, select "Yes".
Click install of the package to install, and an error is reported: DsgnIntf.dcu is not found. This is a difference between Delphi5 and Delphi6. Change DsgnIntf in uses to {$IFDEF VER140} DesignIntf, DesignEditors {$ELSE} DsgnIntf {$ENDIF}.
Continue compiling. The report does not find DsgnIntf.dcu. After searching, there is one in Source/ToolAPI in the Delphi installation directory. Copy it to lib.
Continue compiling. It is reported that DesignMenus.dcu is not found. Download it again, search again, it is still in Source/ToolAPI, and then copy it to lib.
After compiling again, it still says that something is missing, so just copy whatever is missing. Who makes me stupid? This time DesignEditors is missing, of course it is still in Source/ToolAPI. There is still a DesignConst missing, so copy it as well.
Later, I found a simple way. Since these three are in the same directory, just include the path. Click the menu Tools->Environment Option, select the Library page, and add Source/ToolAPI in the Library Path.
Finally, PRoxies.duc is missing. I couldn't find it this time. What should I do? Write one myself. No joke, this file is no longer useful in Delphi6, write one to trick it :), the program is as follows:
unit Proxies;
interface
Function IsProxyClass(ComponentClass: TClass): Boolean;
implementation
Function IsProxyClass(ComponentClass: TClass): Boolean;
begin
Result := True;
end;
end.
Save to lib.
Continue to compile, there is another error, Form is not defined, this is the source code, what's going on? Open the source code and take a look. It turns out to be called Root. Change all error-reported Forms to Root. After modification, install again, OK.
The last control in Data access is Crpe.