I have been getting the following error
Error 185: "WorkFlow_dce.cpp", line 58 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.workunitId =(long) feStruct->wfWuHandle-
>workunitId;^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 59 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.workunitSeq = (int)feStruct-
>wfWuHandle->workunitSeq;^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 60 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
lclStruct->wfWuHandle.updateSerialNum = (int)feStruct-
>wfWuHandle->updateSerialNum;^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 61 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)lclStruct->prodType,(char*)feStruct-
>prodType.c_str());^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 62 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)lclStruct->prodSubType,(char*)feStruct-
>prodSubType.c_str());^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 63 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)lclStruct->opnType,(char*)feStruct-
>opnType.c_str());^^^^^^^^
Error 185: "WorkFlow_dce.cpp", line 64 # Left side of '->' requires a
pointer to class; type found was 'struct WF_SEARCH_WU'.
strcpy((char*)lclStruct->customerNum,(char*)feStruct-
>customerNum.c_str());^^^^^^^^
In my WorkFlow_dce.cpp file
In funtion definition of fillWfSearchStructure I have
void fillWfSearchStructure(WF_SEARCH_WU *lclStruct ,WfSearchWu
&feStruct)
{
lclStruct->wfWuHandle.workunitId =(long) feStruct->wfWuHandle-
>workunitId;lclStruct->wfWuHandle.workunitSeq = (int)feStruct->wfWuHandle-
>workunitSeq;lclStruct->wfWuHandle.updateSerialNum = (int)feStruct->wfWuHandle-
>updateSerialNum;strcpy((char*)lclStruct->prodType,(char*)feStruct->prodType.c_str());
strcpy((char*)lclStruct->prodSubType,(char*)feStruct-
>prodSubType.c_str());strcpy((char*)lclStruct->opnType,(char*)feStruct->opnType.c_str());
strcpy((char*)lclStruct->customerNum,(char*)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 fillWfSearchStructure( WF_SEARCH_WU *lclStruct ,WfSearchWu
&feStruct );
Why would I get the above errors
Can someone please guide me in the right direction
Thanks
Amit