by Rachan.c » November 28th, 2007, 7:08 am
Thank you very much Kambiz. I'm very appreciate for your help.
I tried to do as you advise but it still not successful. It seem success for the first time (I use TScollBox(Form) to be Ancestor Type) but "Preview.dcu" may invalid (size only 3kb). When I try to compile my project. Delphi always asks for "Preview.pas".
After I try to do many methods. I found the procedure that help me to install this component successfully as the below.
1. Open Delphi Program.
2. Select "Component--> Install Component".
3. Select tab "Into new Package".
4. Browse to "Preview.pas" for Unit File Name.
5. Type package name as you want with ".dpk" extension which other than "Preview.dpk"
(For this example I type "PackageXX.dpk".)
6. Click "OK" to start Compiling and installation.
7. Click "Yes" to confirm replacing.
8. Click "OK" to finish Installation.
At this time, "Delphi Area" pallette willappear in the Delphi Pallette.
The "PreviewXX.dcu" (3k size) and "Preview.dcu" (118k size) will be created.
in the same folder of Preview.pas. The "Preview.bpl" and "Preview.dcp" will be
created in "\\$Delphi Folder\Projects\Bpl" folder.
9. Close Delphi Program.
10. Copy "Preview.dcu" (118k size) and "Preview.res" to "$Delphi Folder\Bin" folder.
11. Rename "PreviewXX.bpl" to "Preview.bpl" and "PreviewXX.dcp" to "Preview.dcp".
12. Open Delphi Program again. The 2 Error Messages will be displayed. Don't worry, just
click "Yes" untill the program opened.
13. Click "Component-->Install Package".
14. Select line of Design Package "PreviewXX.bpl" then click remove. Click "Yes" to confirm.
15. Click "Add" button and browse to "Preview.bpl" in \\$Delphi Folder\Projects\Bpl" folder.
16. At this point you can use "Preview" smoothly.
I think this procedure may help other person who encounter the same problem.
Thank you again.
Rachan.c