Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 175
  • Last Modified:

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



0
mhervais
Asked:
mhervais
1 Solution
 
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
 
rwilson032697Commented:
Marc,

Try writing the declaration for the register procedure like this:

procedure Register;  

Note the capital 'R'...

Cheers,

Raymond.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
danyszCommented:
hi

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

daniel
0
 
rwilson032697Commented:
<Answer as per my comment>

Cheers,

Raymond.
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now