I am having a newie problem with descriptors that I am not sure how to solve.
I define a variable inside a class header file as:
The variable is initilized Ok inside the ContructL() for the class.
I want to use this variable as the first argument of method defined as:
void IssueHTTPPostL(const TDesC8& aUri,
const TDesC8& aContentType,
const TDesC8& aBody);
which I actually "borrowed" from the HTTPClientExample in this forum.
The way I call this method inside my code is:
iEngine->IssueHTTPPostL(serverurl, KMimeType, postdata); // ERROR LINE
where "postdata" is also defined as a TBuf<128>, but inside the code (not in the header file).
When I try to compile the code I get an error on the line with the iEngine->IssueHTTPPostL... saying:
error: no matching function for call to `CHTTPEngine::IssueHTTPPostL(TBuf<128>&, const TLitC8<34>&, TDes8&)'
The thing is that it complaints about the first argument but not about the 3rd. They both have the same types (TBuf<..>), the only difference is that the first is defined in the header file and the third inside the code (inside the function that includes the ERROR LINE).
How can I solve this?
BR/ Juan Noguera