int GB.LoadComponent ( const char * name )
Загружает компонент.
name - имя компонента, наподобие "gb.qt.kde"
.
Эта функция используется компонетом базы данных для загрузки заданных драйверов базы данных. Да, драйверы базы данных - это компоненты, даже если они не реализуют классов.
Пример :
/* Here is an extract of the database component internal function that loads a driver */
static DB_DRIVER *DB_GetDriver(char *type)
{
...
char comp[strlen(type) + 8];
...
strcpy(comp, "gb.db.");
strcat(comp, type);
if (GB.LoadComponent(comp))
{
GB.Error("Cannot find driver for database: &1", type);
return NULL;
}
...
}