BYTE* ReturnAsPointer()
{
DBT key, data;
....................
return data.data;
}
void TestFunc()
{
BYTE * pReturnData = ReturnAsPointer();
}
In TestFunc, is the pReturnData valid?
if not valid, should i must allocating heap memory and copy to there?
NightThunder 작성:
Quote:
Hi, all.
I want to know the scope od datafield of DBT struct.
When i get one record, the data struct has valid data region pointer.
but how can I assure a validity of that pointer?
when I return that pointer, is valid that data region in memory?
Thanks in advance. |