문제

std::ostringstream parmStream;
char parmName[1024];
    THTTPUrl::Encode(parmName, pParm->Name().c_str(), 1024);

//I want to add the value of the paramName to the parmStream worked b4 when parmName was a string but obv not now

parmStream << "&" << parmName + "=";

Gives me the following .. error: invalid operands of types \u2018char [1024]\u2019 and \u2018const char [2]\u2019 to binary \u2018operator+\u2019

Cheers for the help in advance

도움이 되었습니까?

해결책

Try

parmStream << "&" << parmName << "=";

I haven't check your code but it looks like the error is pointing to the fact you are trying to add the "=" to a standard C string.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top