Solved

Why won't my component install on the package

Posted on 2001-06-04
7
163 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
Comment Utility
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
Comment Utility
no second one
0
 
LVL 12

Expert Comment

by:rwilson032697
Comment Utility
Marc,

Try writing the declaration for the register procedure like this:

procedure Register;  

Note the capital 'R'...

Cheers,

Raymond.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 2

Expert Comment

by:danysz
Comment Utility
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
Comment Utility
<Answer as per my comment>

Cheers,

Raymond.
0
 
LVL 4

Author Comment

by:mhervais
Comment Utility
Once again you solved it

I didn't know that Delphi could be case sensitive

thanks

Marc
0
 
LVL 12

Expert Comment

by:rwilson032697
Comment Utility
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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

728 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

10 Experts available now in Live!

Get 1:1 Help Now