Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why would anyone make an empty Register procedure?

1 view
Skip to first unread message

Jan Doggen

unread,
May 8, 2008, 1:16:08 PM5/8/08
to
Hi, I found this (parts left out). The Register procedure is empty. Why is
it in there?
Thanks
Jan


unit PageControlExu;
{ This component removes the border at the pagecontrol(only when there are
one ore more tabs). }
interface

uses
Windows,Messages,Classes,CommCtrl,ComCtrls;

type
TPageControlEx=class(TPageControl)
private
{...}
protected
public
published
end;

procedure Register;

implementation

constructor TPageControlEx.Create(AOwner: TComponent);
begin
{...}
end;

procedure TPageControlEx.WndProc(var Message:TMessage);
begin
{...}
end;

procedure Register;
begin
end;

end.

========================================================================================
http://www.jandoggen.org http://www.beautyofpeople.com
http://www.puddingclub.nl


David HAROUCHE

unread,
May 8, 2008, 3:16:49 PM5/8/08
to
Could have been from a code generator !

DH>


Marc Rohloff [TeamB]

unread,
May 8, 2008, 5:30:10 PM5/8/08
to
On Thu, 8 May 2008 19:16:08 +0200, Jan Doggen wrote:

> Hi, I found this (parts left out). The Register procedure is empty. Why is
> it in there?

It looks like they deleted or moved the code inside (I assume to
register TPageControlEx) and never deleted the procedure.
You should be able to remove it.

--
Marc Rohloff [TeamB]
marc -at- marc rohloff -dot- com

Jan Doggen

unread,
May 10, 2008, 10:40:56 AM5/10/08
to
Mmmm, yes, maybe they moved the RegisterComponents call. The code I'm
talking about is a mess of packages, design- and runtime mixed, "compile
with runtime packages" checked but then with all the original Delphi units
imported into a custom package so the Delphi bpls don't have to be
distributed, etc...

Jan

"Marc Rohloff [TeamB]" <ma...@nospam.marcrohloff.com> schreef in bericht
news:19mknshk...@dlg.marcrohloff.com...

0 new messages