Convert char array to what can be added to ostringstream

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

// I want to add the paramName value to parmStream running b4 when parmName was a string, but obv now now

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

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

Greetings for help in advance

+1
source share
1 answer

Try

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

I did not check your code, but it seems that the error indicates that you are trying to add "=" to the standard C line.

+1
source

All Articles