Board index » delphi » Re: pngcomponents can not install under Delphi 2006.
michaelv
Delphi Developer |
michaelv
Delphi Developer |
Re: pngcomponents can not install under Delphi 2006.2006-10-17 06:13:31 PM delphi54 On Wed, 4 Oct 2006 10:59:14 +0300, "Bob D" <XXXX@XXXXX.COM>writes: Thanx BOB D. I works perfectly under D2005 ... In the meantime i have got and BDS 2006 , and i now got this Error : [Pascal Fatal Error] PngComponentsD9.dpk(32): F2141 Bad file format: 'PNG_D9.dcp' : Anyone knows what is wrong ???? Thanks in advance... /Michael |
Dennis Passmore
Delphi Developer |
2006-10-18 04:55:17 AM
Re: pngcomponents can not install under Delphi 2006.Quote
Start out by copying the file PNG_D9.dpk to PNG_D10.dpk, file PngComponentsD9.dpk to PngComponentsD10.dpk and file PngComponentsD9D.dpk to PngComponentsD10D.dpk. Now using your favorite text editor open up PNG_D10.dpk and edit the first line to read PNG_D10. Open up PngComponentsD10.dpk and edit the first line to PngComponentsD10 and then find the line PNG_D9 and change it to PNG_D10. Open up file PngComponentsD10D.dpk and edit the first line to read PngComponentsD10D and change the line PngComponentsD9 to PngComponentsD10. Save all changes. Now open up the file "include\Thany.inc" and copy the block starting with {$IFDEF VER170} thru the second {Endif} and past it back in again and change the VER170 to Ver180. Open up BDS2006 and edit the Library path to include where ever you have the PngComponents source installed by add the path ..\PngComponents\Source. Load PNG_D10.dpk in and edit the project options to set the Output folder and the DCP output folder to where ever you like and build it. Load PngComponentsD10.dpk in and edit the project options to set the Output folder and the DCP output folder to where ever you like and build it. Load PngComponentsD10D.dpk in and edit the project options to set the Output folder and the DCP output folder to where ever you like and build it. Now you can install PngComponentsD10D.bpl in BDS2006 and you are done. |