Why won't my component install on the package

Hi all,

I wrote a component, here is a snippet :

unit UWPTables;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  Db, FFDB, UGenericTable,hyperstr2, syncobjs;

type

  TWorkPackage = class (TGenericTable)
  protected
...
  public
...
end;
  procedure register;  

implementation

....

procedure Register;
begin
  RegisterComponents('Misc', [TWorkPackage]);
end;

end.

this compiles without problem, D5 tells me that the package has been registered, but the componant is not added on the palette.

to avoid speculation I must add the the chosen description options are "desing and execution"

thanks for your help

cheers, Marc



LVL 4
mhervaisAsked:
Who is Participating?
 
rwilson032697Connect With a Mentor Commented:
<Answer as per my comment>

Cheers,

Raymond.
0
 
rc_thomCommented:
Do you get a confirmation dialog that the component has been added to the package file and a second one asking to save changes to the package?
0
 
mhervaisAuthor Commented:
no second one
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
rwilson032697Commented:
Marc,

Try writing the declaration for the register procedure like this:

procedure Register;  

Note the capital 'R'...

Cheers,

Raymond.
0
 
danyszCommented:
hi

what raymond said is your problem the Register procedure is case sensitive...

daniel
0
 
mhervaisAuthor Commented:
Once again you solved it

I didn't know that Delphi could be case sensitive

thanks

Marc
0
 
rwilson032697Commented:
To be fair it isn't Delphi, but windows 32 bit DLLs which cause the problem. But why the compiler didn't know to enforce this particular capitalisation for this special procedure is another question!

Cheers,

Raymond.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.