I ran <IDEInstall.exe> to install TRichView Component in Delphi 6. When you run the Delphi 6 program after installation is complete, the following error appears.
<Cannot load package 'TVPkgD6'. It contains unit 'ZLib', which is also contained in package 'TPDF' Do you want to attempt to load this packge THEN next TIME a project is loaded?>
Please tell me the solution to this problem.
Cannot load package
-
- Site Admin
- Posts: 17805
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Cannot load package
This is a known problem.
The old versions of Delphi (Delphi 5 and Delphi 6) include ZLib, but do not include its units in any standard VCL package.
As a result, the first third-party package that uses ZLib will include it implicitly. Two packages cannot include the same units.
This problem cannot be fixed from our side, because we cannot predict which third-party packages are already installed in Delphi 6.
I can suggest several solutions, from simple to more complicated:
1. If you do not need TPDF, uninstall it, and install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
or
2. Open TRichView\Source\RVPkgD6.dpk in Delphi, and add TPDF.dcp in its "requires" section. Save RVPkgD6.dpk and close Delphi. Then install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
or
3. Create a new package, add units Lib\ZLinb.dcu and Lib\ZLibConst.dcu to it. Compile it. Add this package in "requires" section of TPDF.dpk, compile it. Add this package in "requires" section RVPkgD6.dpk, then install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
If you need additional help, tell me which option you have chosen. I'll provide detailed instructions.
The old versions of Delphi (Delphi 5 and Delphi 6) include ZLib, but do not include its units in any standard VCL package.
As a result, the first third-party package that uses ZLib will include it implicitly. Two packages cannot include the same units.
This problem cannot be fixed from our side, because we cannot predict which third-party packages are already installed in Delphi 6.
I can suggest several solutions, from simple to more complicated:
1. If you do not need TPDF, uninstall it, and install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
or
2. Open TRichView\Source\RVPkgD6.dpk in Delphi, and add TPDF.dcp in its "requires" section. Save RVPkgD6.dpk and close Delphi. Then install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
or
3. Create a new package, add units Lib\ZLinb.dcu and Lib\ZLibConst.dcu to it. Compile it. Add this package in "requires" section of TPDF.dpk, compile it. Add this package in "requires" section RVPkgD6.dpk, then install TRichView again, using "Install TRichView VCL in Delphi IDE" command in Windows Start menu.
If you need additional help, tell me which option you have chosen. I'll provide detailed instructions.