Hallo,
ich kann in meinem
Package keine Komponente registrieren... Hier der Quellcode eine kleinen Beispielskomponente:
Delphi-Quellcode:
unit unit_test;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TFrame1 =
class(TFrame)
Label1: TLabel;
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
procedure register;
implementation
{$R *.dfm}
procedure register;
begin
RegisterComponents('
TestPage', [TFrame1]);
// RegisterComponents('MyComp', [TMyEdit]);
end;
end.
Hier der Quellcode des Packages:
Delphi-Quellcode:
package modPrintingFrame;
{$R *.res}
{$ALIGN 8}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION ON}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$DESCRIPTION 'Printing-Frame-Package (Dominik Bhm)'}
{$IMPLICITBUILD OFF}
requires
rtl,
vcl;
contains
unit_test
in '
unit_test.pas'
{TFrame1};
end.
Sieht da jemand den Fehler mit bloßem Hinschauen?
Vielen Dank!