Код: Выделить всё
public ActionResult GetDBFile(int testResult, string type) //testResult parameter is passed initially, type is added later
{
}
< /code>
и ниже мой метод чтения в C ++ < /p>
bool CRTSWebResultData::ReadIntoMemFile(LPCTSTR type,CMemFile &memf)
{
//create an spc call to retrive this data
CSPCCall c(m_url,"GET");
c.AddArgument("type",type); //THIS DOES NOT WORK
//perform the call, server error indicated on false return
if(c.ExecuteCall())
{
if(c.GetResponseLength() > MEMFILE_LIMIT_BYTES)
{
SetError("Response document was too large for processing. 10MB limit.",0);
return false;
}
c.ReadResponseIntoMemFile(memf,MEMFILE_LIMIT_BYTES);
}
else
{
SetError(c.GetSpcErrorMessage(),c.GetSpcErrorCode());
return false;
}
return true;
}
http://myurl.com/testdata/getdbfile?testresult= 3452 < /p>
< /blockquote>
Я просто хочу добавить параметр «Тип» через CSPCCALL после факта, как вы можете видеть в приведенном выше методе, но я получаю ошибку в C ++ каждый раз. «TestResult» уже содержится в URL -адресе, когда мы его доступ.>
Подробнее здесь: https://stackoverflow.com/questions/794 ... sp-net-mvc
Мобильная версия