RegisterComponents, why can't I register my component?

Posted on 2003-03-12
Medium Priority
Last Modified: 2010-04-04
Hi all, having a small problem registering my component.
I'm making a component that uses several other components, like the antifreeze component from the Indy, Tstrings and a few more streams etc.

Then I put in the register procedure, and no reaction??
No component pops up in my menu.
Tried to make another component (little code), and that one registered right away.

Probably something I have forgotten to add or something.

Hope someone can help me

Question by:Suprimus
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8124658
Try it:
In your pack add to reqiures indy.dcp

Accepted Solution

steve_hsk earned 200 total points
ID: 8126154
Hi Sup ...

There could be many reasons for this. However one particular issue that confused me once was the Register declaration.

As you know delphi is not case sensitive. That is not 100% correct. There is one particular statement that is case sensitive, and whilst compiling would be successful, the script engine that looks for keywords like Register is case sensitive.

procedure Register;


procedure Register;
  RegisterComponents('Samples', [TComponent1]);

This will work and the dialog msg from Borland will declare the msg registered, however if you change just one letter the 'R' to a 'r' in the declaration :

procedure register;

This will not work, and if this component is already registered, Borland will produce a msg dialog box informing you the component is no longer registered.

If this isn't your problem, then we need to see more of your code to be able to help more.

Hope this helps,
LVL 12

Expert Comment

ID: 8127388
You _are_ 'installing' the component aren't you... not just including a 'Register' procedure and expecting it to magically appear on the component pallette....??

Author Comment

ID: 8129011
Thx Steve, I had declared the procedure Register with a small r.

And I spent 3 hours on that problem yesterday, my mind must have been sleeping :)

Thx for the Assist,


Expert Comment

ID: 8129067
Happy I could help !

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question