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

試著忘記壹切 提交于 2019-12-17 19:26:12

问题


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


回答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 -

Step #2 . Select New package

Step #3 .

Add the source files RealTimeMarquee.pas,SimpleHTML.pas

Step #4 .

Step #5 . A)Compile and then install

Step #6 . On successful installation you will get this message.

Step #7 . You can save the .dpk file also

Step #8 . Use the component from Tool Palatte




回答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.



来源:https://stackoverflow.com/questions/8685060/how-to-install-a-component-from-pas-file-in-delphi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!