size_t wxcurl_string_write(void* ptr, size_t size, size_t nmemb, void* pcharbuf) { size_t iRealSize = size * nmemb; wxCharBuffer* pStr = (wxCharBuffer*) pcharbuf; if(pStr) { wxString str = wxCURL_BUF2STRING(*pStr) + wxString((const char*)ptr, wxConvLibc); *pStr = wxCURL_STRING2BUF(str); } return iRealSize; }
void wxCurlHTTP::SetCookieFile(const wxString& szFilePath) { m_szCookieFile = wxCURL_STRING2BUF(szFilePath); }
void wxCurlFTP::SetPortParam(const wxString& szParam /*= wxS("-")*/) { m_szPortParam = wxCURL_STRING2BUF(szParam); }