Solved

Why won't my component install on the package

Posted on 2001-06-04
7
165 Views
Last Modified: 2010-08-05
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
Comment
Question by:mhervais
7 Comments
 

Expert Comment

by:rc_thom
ID: 6154032
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
 
LVL 4

Author Comment

by:mhervais
ID: 6154213
no second one
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 6154387
Marc,

Try writing the declaration for the register procedure like this:

procedure Register;  

Note the capital 'R'...

Cheers,

Raymond.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 2

Expert Comment

by:danysz
ID: 6154937
hi

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

daniel
0
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 6154993
<Answer as per my comment>

Cheers,

Raymond.
0
 
LVL 4

Author Comment

by:mhervais
ID: 6155488
Once again you solved it

I didn't know that Delphi could be case sensitive

thanks

Marc
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 6162273
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now