D
Donos
Hello
I have the following program,
class CMyValues
{
public:
void getValue(unsigned char* pVal)
{
pVal = allValues();
}
unsigned char* allValues()
{
unsigned char* a;
-------------------
// Some code in here
-------------------
return a;
}
};
class CAllValues
{
public
void CheckValues(CMyValues& mVal)
{
unsigned char pbuf[512];
mVal.getValue(pbuf); // NOT GETTING VALUE HERE
}
};
Somehow am not able to get the "pVal" in "pbuf".
Why this is happening?
I have the following program,
class CMyValues
{
public:
void getValue(unsigned char* pVal)
{
pVal = allValues();
}
unsigned char* allValues()
{
unsigned char* a;
-------------------
// Some code in here
-------------------
return a;
}
};
class CAllValues
{
public
void CheckValues(CMyValues& mVal)
{
unsigned char pbuf[512];
mVal.getValue(pbuf); // NOT GETTING VALUE HERE
}
};
Somehow am not able to get the "pVal" in "pbuf".
Why this is happening?