Home > dev > api > name > gb.getinterface 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
GB.GetInterface
int GB.GetInterface ( const char *name , long version , void *iface )

This function gets a component interface. It fills a structure that describes an interface of an already loaded component.

This function aborts the interpreter if the interface cannot be found. Otherwise zero is returned.

Example

#include \<gambas.h>
#include \<gb.qt.h>

...

QT_INTERFACE QT;

...

int GB_INIT(void)
{
  GB.GetInterface("gb.qt", QT_INTERFACE_VERSION, &QT);
  ...
}