I have created a static library and have passed over a data structure, but when I look at this structure following the call it contains all zeros.
Can someone tell me what I am doing wrong.
In the callng program:
static STATUSINFO status_data; // The data structrue
I now call the library finction GetStatusInfo with this data structure as follows:
GetStatusInfo(&status_data);
The library function goes like this:
UINT16 GetStatusInfo(STATUSINFO * Status_Info_Data)
{
STATUSINFO Status_Info;
Status_Info.item; / set the items
...
...
// Now set the return structure to the one just filled
Status_Info_Data = &status_Info;
return API_OK;
}
The data structute is populated correctly in the library call GetStartInfo (checked via breakpoint), but not
when I look that the data following the call to GetStatusInfo in my program.
Can someone tell me what I am doing wrong.
In the callng program:
static STATUSINFO status_data; // The data structrue
I now call the library finction GetStatusInfo with this data structure as follows:
GetStatusInfo(&status_data);
The library function goes like this:
UINT16 GetStatusInfo(STATUSINFO * Status_Info_Data)
{
STATUSINFO Status_Info;
Status_Info.item; / set the items
...
...
// Now set the return structure to the one just filled
Status_Info_Data = &status_Info;
return API_OK;
}
The data structute is populated correctly in the library call GetStartInfo (checked via breakpoint), but not
when I look that the data following the call to GetStatusInfo in my program.