Register Components in Delphi 5

i have a newly created package, wich contains 1 unit.

in this unit is the following code

{ ... }

procedure register;

implementation

procedure register;
begin
  ShowMessage('Registering...');
  RegisterComponents(PalletPage, [TRCKComponent]);
  RegisterPropertyEditor(TypeInfo(TAboutString), TRCKComponent, 'About', TAboutProperty);
end;

{ ... }


i compile the package, then i install the package. (no errors or warnings)

Delphi says 'Package installed' ...

but it never calls the register procedure, so the component never is registered.

what am i doing wrong?
topkapiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

topkapiAuthor Commented:
Edited text of question.
0
markshifferCommented:
Your register procedure appears correct, but your saying that it never calls it?

Does it say anything in addition to Package Installed, like "The following components have been registered : TRCKComponent."? (probably not)

What is PalletPage? Usually you stick a string directly in there such as 'RCK'
or something....

Guessing here, if you send me the code I will see if I could install it here...
0
rwilson032697Commented:
Change this line (two ocurrances)

procedure register;

to:

procedure Register;

I kid you not!

Cheers,

Raymond.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

LischkeCommented:
Ray, don't tell me this is the reason. Case sensitivity? In Delphi?

Ciao, Mike
0
topkapiAuthor Commented:
third try...
0
topkapiAuthor Commented:
i had to accept your answer three times before discovering i was using the wrong button...

Raymond : it does work the way you showed here. thanks

indeed delphi seems to have become case-sensitive on this matter...

0
rwilson032697Commented:
I got bitten by this a while back and only tried the capitalisation as a last resort.

I think the reason is that the Register function in a package is just a DLL call (of sorts), which are case sensitive in Win32.

Not a good excuse I know!

Cheers,

Raymond.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.