?
Solved

RegisterComponents, why can't I register my component?

Posted on 2003-03-12
5
Medium Priority
?
306 Views
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

Suprimus
0
Comment
Question by:Suprimus
[X]
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
5 Comments
 
LVL 3

Expert Comment

by:Aliev
ID: 8124658
Try it:
In your pack add to reqiures indy.dcp
0
 
LVL 2

Accepted Solution

by:
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;

implementation

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

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,
Steve
0
 
LVL 12

Expert Comment

by:andrewjb
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....??
0
 

Author Comment

by:Suprimus
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,

Sup..
0
 
LVL 2

Expert Comment

by:steve_hsk
ID: 8129067
Happy I could help !
STeve
0

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