Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Are there any problems as the codes below? It got nothing, and the callback function called only once ? Why ? Thx a lot.

static void CNewWin_Http( CNewWin* pMe,const char* pszUrl )
{
CALLBACK_Init(&pMe->m_WebCallback,CNewWin_WebCallback,pMe);
IWEB_GetResponse(pMe->m_pIWeb,
(pMe->m_pIWeb,&pMe->m_pIWebResp,&pMe->m_WebCallback,pszUrl,
WEBOPT_HANDLERDATA,pMe,
WEBOPT_HEADER, "X-Method: GET\r\n",
WEBOPT_END));

}

static void CNewWin_WebCallback( IWindow *pNewWin)
{
CNewWin * pMe = (CNewWin *)pNewWin;
WebRespInfo * pWebRespInfo = IWEBRESP_GetInfo(pMe>m_pIWebResp);
ISource * pISource = pWebRespInfo->pisMessage;

IHTMLVIEWER_LoadSource(pMe->m_pHtmlViewer,pISource);
CNewWin_Redraw(pNewWin);
return;

I sniff the network interface, found , even it does not send any data.

I sniff the network interface, found , even it does not send any data.

Where your URL is allocated? Be sure to follow the guidelines specified in "Lifetimes of WebOpt" in the SDK doc.

Where your URL is allocated? Be sure to follow the guidelines specified in "Lifetimes of WebOpt" in the SDK doc.