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
Solved

Why won't my component install on the package

Posted on 2001-06-04
7
167 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
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Path  to current project in Delphi. 2 92
Printing problem 2 102
Print Graphic and Text to Epson TM-T88v 12 381
Graphics32 under Delphi 10.1 Berlin 2 102
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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