![]() |
Memory Allocation To a Structure
Dear Experts
I have the following Structure Code:
typedef struct wf_list_workunit_fe |
Re: Memory Allocation To a Structure
There are 2 ways to say if its correct or not.
1. Syntactically 2. Semantically For testing point 1 you should allow the compiler to say if its compiling. For Semantically correction we need to know what you are trying to do as well. |
Re: Memory Allocation To a Structure
Hi Shabbir
Thanks for the reply .. WF_LIST_WORKUNIT_FE array of structure is sent as an OUT param in one of the RPC.. Im allocating a memory for it to store all the member varibles of WF_LIST_WORKUNIT_FE in local variables for (int i = 0; i < ptrlistWU->nbr_Workunits_fe; i++) { retObj->workunitArray->lstWorkunit->wfStructWu.push_back(conObj.WFWuStructDceToSoap(p trlistWU->lst_Workunit_fe[i])); } where lstWorkunit is the local object and I have ptrlistWU->lst_Workunit_fe[i]) that is passed to WFWuStructDceToSoap method ... |
| All times are GMT +5.5. The time now is 20:43. |