Re: WTL 8, ATL DLL and Browser

"Paul Selormey" <pegroups-/[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
Hello Igor,
Thanks for the reply.

> I'm not sure what you mean by "still". 
Before (may be you have not noticed it), the wizard generated code includes in the stdafx.h

// This is required for hosting browser in ATL7
#define _ATL_DLL

> Hosting ActiveX controls, including WebBrowser control, is 
> implemented in ATL; WTL doesn't provide its own independent 
> implementation. 
I know...

> However, you could always link to ATL statically, and didn't 
> need ATL DLL.
Right. I was having a browser related problem, the applications works perfectly on my machine (both XP and Vista) and throws exception with access violation on others using XP.
But, I have not found the solution. I was using a Clear() method (I found on codeproject) that clears the current browser contents. I replaced it with MS recommendation for the clear method IHTMLDocument2::clear at
http://msdn.microsoft.com/en-us/library/aa752567(VS.85).aspx
and everything works correctly.

Best regards,
Paul.



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.