Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   RegisterClass (https://www.clubdelphi.com/foros/showthread.php?t=6389)

MARIOR 06-01-2004 02:54:48

RegisterClass
 
Alguien me puede ayudar, necesito registrar clases en un paquete
(.bpl) para poder usarla en una aplicacion pero no se como hacerle alguna sugerencia. Gracias.

marcoszorrilla 06-01-2004 11:53:30

F1:
Cita:

Registers a class of persistent object so that it’s class type can be retrieved.

Unit

Classes

Category

streaming utilities

procedure RegisterClass(AClass: TPersistentClass);

Description

Call RegisterClass to register a class with the streaming system. Form classes and component classes that are referenced in a form declaration (instance variables) are automatically registered. Any other classes used by an application must be explicitly registered by calling RegisterClass if instances are to be saved.

Once classes are registered, they can be loaded or saved by the VCL streaming system. GetClass returns nil when passed the class name of an unregistered class, and FindClass raises an exception for unregistered classes.

The AClass parameter is the class that is descended from TPersistent. Put the call to RegisterClass in a Register procedure or in the initialization section of the unit in which the class is defined.

If the class is already registered, RegisterClass does nothing. If a different class with the same name is already registered, RegisterClass raises an EFilerError exception.

Note: Registering a component using the RegisterNoIcon or RegisterComponents method does not automatically register the class. It is still necessary to call RegisterClass for components.
Best Regards.
Marcos.


La franja horaria es GMT +2. Ahora son las 15:38:04.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi