Access static methods and fields with class type returned by dlsym

227 Views Asked by At

Can we access static methods and fields with class type returned by dlsym?

Ex:

MyClass* pMyClass= (MyClass*)dlsym(phandle, "MyClass");
pMyClass->staticFunction();
pMyClass->staticField=0;

;

0

There are 0 best solutions below