Log in

View Full Version : htmlctrl makes my app crash!


slomoman
10-16-2003, 05:12 PM
ok, i'm workig in this for 2 days now and i'm getting frustrated.

Normally, I can close my app (ppc2002, evc3) and restart without problem. however, if I call the following line more than three times, i cannot close anymore and the PPC crashes when i try to close.(soft-reset).
...
void CSTHtmlDialog::SetHtml(CString* strHtml){
::SendMessage(m_hwndHtml, DTM_ADDTEXTW, FALSE, (LPARAM) (LPCTSTR)*strHtml);

m_hwndHtml is a CDialog that uses htmlview.dll and <Htmlctrl.h>.

What can i do? i'm going crazy :? :? :( :(