D
Donos
Hello
I posted this earlier,but some how it's still not working for me. So i
thought of giving a better description this time.
The following is the code that am using,
class CMyValue
{
public:
CCmdValue m_pValue;
unsigned char* pBuf = NULL;
m_pValue.GetValue(pBuf); // Expecting return for pBuf here
};
class CCmdValue
{
public:
void CCmdValue::GetValue(unsigned char*& pVal)
{
pVal = NewValue(); // This function returns a
unsigned char*
}
};
Now am expecting the class CMyValue to get the return value of
function "NewValue()" in class CCmdValue, through the unsigned char*
pVal.
But this is not working.
I tried this in many different ways, but still fails.
Any help is welcome.
Thanks.
I posted this earlier,but some how it's still not working for me. So i
thought of giving a better description this time.
The following is the code that am using,
class CMyValue
{
public:
CCmdValue m_pValue;
unsigned char* pBuf = NULL;
m_pValue.GetValue(pBuf); // Expecting return for pBuf here
};
class CCmdValue
{
public:
void CCmdValue::GetValue(unsigned char*& pVal)
{
pVal = NewValue(); // This function returns a
unsigned char*
}
};
Now am expecting the class CMyValue to get the return value of
function "NewValue()" in class CCmdValue, through the unsigned char*
pVal.
But this is not working.
I tried this in many different ways, but still fails.
Any help is welcome.
Thanks.