Click here to Skip to main content
15,890,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a problem to use web service in my VC++ 2005.
I added Web Referenece in project successfully . one function of this service has a parameter that is a struct. that struct has an array member.
the web service will fill this parameter .
//--- in MyWebService.h that was added in my vc++ 2005 project
struct InfoStruct
{
    Accounts *accounts;  // Accounts is another defined struct
    int size;
    BSTR result;
};

//---
CMyWebService myService;
InfoStruct Iinfo;
HRESULT h = myService.getInfoByName(L"myName", &Iinfo);   // h = E_FAIL

But when I call this function , the function returns E_FAIL and the parameter(Iinfo) isn't filled!
How do i get info successfully when it has an array?
Please help me.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900