extern C Object* getComponentFactory()
{
return new MyLibComponentFactory();
}
typedef Object* (*GetComponentFactoryCall)();
#ifdef ACDK_OS_WIN32
SharedLibrary slib(libmylib.so);
#else
SharedLibrary slib(mylib.dll);
#endif
slib.loadLibrary();
GetComponentFactoryCall fptr = (GetComponentFactoryCall)slib.locateFunction(getComponentFactory);
if (fptr == 0)
return;
RObject obj = (*fptr)();