![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#4
|
|||
|
|||
|
Procedures Stream.WriteComponent and ReadComponent are
purposed for deal mainly with Root components (Form, DataModule, ...). Somewhen I was experimenting with components and wrote procedures for read/write non-root components from stream:
PS: When Reader reads a component from stream, initially it reads the Class Name of the component. Then (if the component has not been created before reading) Reader tries to find the Class Reference by Class Name. First, it searches the class in the RTTI-table of Root component. If there is any component of the same class in the Root, then success. Second, the Reader searches the class in the registered classes. If the class have been registered by RegisterClass (RegisterClasses), then success. Third, the Reader let user to resolve the Class Name to the Class Reference by himself (it calls OnFindComponentClass event handler). If all this attempts have failed, the Reader raise EClassNotFound "class <Class Name> not found". Use RegisterClasses to solve it. Última edición por rounin fecha: 06-10-2005 a las 14:23:22. |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
|