Hi,
If you create a class in a dll, you can access all its properties
with a struct with the same signature. You just need to create plain functions in the dll to call class methods. To create an instance of a class, you create a function in the dll that returns the instance you want (you also need to call the destructor of the class in a similar function).
ex : C++
class CObject
{
public:
// Constructor
CObject(int, int, int);
// Destructor
~CObject();
int a;
int b;
int c;
// Sample method
void foo();
}
/**
* Constructor
*/
CObject::CObject(int x, int y, int z)
{
this->a = x;
this->b = y;
this->c = z;
}
/**
* Destructor
*/
CObject::~CObject()
{
}
// Sample method
void CObject::foo()
{
this->c = this->a + this->b;
}
// Create instance of the class
DLLFUNC CObject *CObject_Create()
{
return new CObject();
}
DLLFUNC void CObject_Destroy(CObject *instance)
{
delete instance;
}
// This function will be called in lite-c
DLLFUNC void CObject_foo(CObject *instance)
{
// Call the function
instance->foo();
}
Lite - C
typedef struct CObject
{
int a;
int b;
int c;
}CObject;
// Create instance of the class
CObject *CObject_Create();
// Destroy instance of the class
void CObject_Destroy(CObject *instance);
// Call method foo
void CObject_foo(CObject *instance);
I think that will help you.

OOps! too late again
Best regards.