MY_LIST* MyClass :: GetMyRecordsfrmDB ( someArgs1&, someArgs2&) { MY_LIST *pList = NULL; pList = new MY_LIST; fillList (.., pList, ..); //some code which fetches data and store in pList; return (pList); // no 'delete' for *pList in whole function }
delete
new
pList
MY_LIST
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)