J
John Doe
Hi,
Let's say I have a C interface with some exported function like :
zmlInit();
zmlFunc();
and I wrapper all this function to a c++ object ZmlAdapter with the same
method
ZML_API Ret_t zmlInit( VoidPtr_t& a_pHandle )
{
Ret_t nRet = ZML_ERR_OK;
ZmlAdapter* pZmlAdapter = new ZmlAdapter();
a_pHandle = pZmlAdapter ;
return nRet;
}
ZML_API Ret_t zmlFuncA( VoidPtr_t a_pHandle )
{
Ret_t nRet = ZML_ERR_OK;
ZmlAdapter* pZmlAdapter = reinterpret_cast<ZmlAdapter*>(a_pHandle);
pZmlAdapter->FuncA
return nRet;
}
Could I call it a proxy ?
Let's say I have a C interface with some exported function like :
zmlInit();
zmlFunc();
and I wrapper all this function to a c++ object ZmlAdapter with the same
method
ZML_API Ret_t zmlInit( VoidPtr_t& a_pHandle )
{
Ret_t nRet = ZML_ERR_OK;
ZmlAdapter* pZmlAdapter = new ZmlAdapter();
a_pHandle = pZmlAdapter ;
return nRet;
}
ZML_API Ret_t zmlFuncA( VoidPtr_t a_pHandle )
{
Ret_t nRet = ZML_ERR_OK;
ZmlAdapter* pZmlAdapter = reinterpret_cast<ZmlAdapter*>(a_pHandle);
pZmlAdapter->FuncA
return nRet;
}
Could I call it a proxy ?