I have been getting the following error
Error 185: "WorkFlow_dce.c pp", line 58 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.wor kunitId =(long) feStruct->wfWuHandle-
>workunitId;^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 59 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.wor kunitSeq = (int)feStruct-
>wfWuHandle->workunitSeq;^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 60 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.upd ateSerialNum = (int)feStruct-
>wfWuHandle->updateSerialNu m;^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 61 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)l clStruct->prodType,(char *)feStruct-
>prodType.c_str ());^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 62 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)l clStruct->prodSubType,(c har*)feStruct-
>prodSubType.c_ str());^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 63 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)l clStruct->opnType,(char* )feStruct-
>opnType.c_str( ));^^^^^^^^
Error 185: "WorkFlow_dce.c pp", line 64 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)l clStruct->customerNum,(c har*)feStruct-
>customerNum.c_ str());^^^^^^^^
In my WorkFlow_dce.cp p file
In funtion definition of fillWfSearchStr ucture I have
void fillWfSearchStr ucture(WF_SEARC H_WU *lclStruct ,WfSearchWu
&feStruct)
{
lclStruct->wfWuHandle.wor kunitId =(long) feStruct->wfWuHandle-
>workunitId;lclStruct->wfWuHandle.wor kunitSeq = (int)feStruct->wfWuHandle-
>workunitSeq;lclStruct->wfWuHandle.upd ateSerialNum = (int)feStruct->wfWuHandle-
>updateSerialNu m;strcpy((char*)l clStruct->prodType,(char *)feStruct->prodType.c_str ());
strcpy((char*)l clStruct->prodSubType,(c har*)feStruct-
>prodSubType.c_ str());strcpy((char*)l clStruct->opnType,(char* )feStruct->opnType.c_str( ));
strcpy((char*)l clStruct->customerNum,(c har*)feStruct-
>customerNum.c_ str());}
---------------------------------------------------------------------------------------------------------------------------------------
in WorkFlow_dce.h
The declaration of structure WF_SEARCH_WU
is
typedef struct
{
WF_WU_HANDLE wfWuHandle; // workunit handle structure
char prodType[4]; // [4]
char prodSubType[4]; // [4]
char opnType[7]; // [7]
char customerNum[11]; // [11]
}WF_SEARCH_WU;
Also the function declaration in the same file is as below
typedef WF_SEARCH_WU WfSearchWu;
void fillWfSearchStr ucture( WF_SEARCH_WU *lclStruct ,WfSearchWu
&feStruct );
Why would I get the above errors
Can someone please guide me in the right direction
Thanks
Amit