How to install a component from .pas file in delphi?

24,824

Solution 1

My question: How to install this component.

To install follow the steps below (same steps as Remy Lebeau-answer )

Step #1 . make a new package -

enter image description here

Step #2 . Select New package

enter image description here

Step #3 .

Add the source files RealTimeMarquee.pas,SimpleHTML.pas enter image description here

Step #4 . enter image description here

Step #5 . A)Compile and then install

enter image description here

Step #6 . On successful installation you will get this message. enter image description here

Step #7 . You can save the .dpk file also enter image description here

Step #8 . Use the component from Tool Palatte

enter image description here

Solution 2

You cannot compile the files by themselves. You have to add them to a project first. If you want to install them into the IDE's component palette (assuming one or both of them implements a Register() function), you have to create a new "Package" project, add the files to that project, then you can Compile the project and Install the package.

Share:
24,824
Rafik Bari
Author by

Rafik Bari

StackOverflow is very amazing *)

Updated on July 10, 2020

Comments

  • Rafik Bari
    Rafik Bari almost 4 years

    i've downloaded the RealTimeMarquee component for embarcadereo delphi 2010 which comes as a two files

    RealTimeMarquee.pas
    SimpleHTML.pas

    But when i tried to open the file using delphi to compile it, i can't see the green button ( compile / build ) activated.

    My question: How to install this component.

    thankyou