I'm using CDHtmlDialog in a VC++ application to show dynamic content: based
on user actions within the html (clicking a button or checkbox), I am
inserting (or removing) more html text into the dialog. I do this by
generating the new html into CString member variables, and then refreshing
the page using CDHtmlDialog::SetElementHtml().
If I were to guess the stats on this, i would say that it works 75% of the
time; the remaining 25% it crashes, inside mshtml.dll, on insertion/removal
of html.
Has anyone else experienced this behaviour? Or do most people use
CDHtmlDialog/MSHTML hosting for static content? I can't release a product
with this behaviour, obviously. Does anyone know a way to debug into
mshtml.dll at all?
Microsoft, if you're reading this, please provide input. Thanks.
--
James Addison
ACD Systems
Switch the 'd' and the 'c' in adcsystems.com to reply via email.
The first time I used the CDHtmlDialog, I declared the handler functions as
void. My program always crashed with an exception in the MSHTML.DLL after
the function terminated,
so I looked in a MSDN sample and found the correct declaration (which is not
documented in the MSDN library).
I hope this helps you,
regards, Leonhardt
"James Addison" <jadd...@adcsystems.com> schrieb im Newsbeitrag
news:OzZC6jTK...@TK2MSFTNGP12.phx.gbl...
Thanks for the suggestion; however, this is the way in which I declare my
HTML Event handlers currently, and I still have crashes. It appears to
crash upon use of the function CDHtmlDialog::SetHtmlElement().
Suggestion, anyone? Microsoft Professionals, you can respond too! :)
Thanks,
--
James Addison
ACD Systems
Switch the 'd' and the 'c' in adcsystems.com to reply via email.
"Leonhardt Wille" <lwi...@p-labor.de> wrote in message
news:eQVG6SiK...@TK2MSFTNGP09.phx.gbl...
void
CToolBoxDlg::DoDataExchange(CDataExchange* pDX)I'm using this functionality for a month now, and I didn't have any problems yet....
I hope you can use this workaround for your problem,
regards, Leonhardt