wxHtmlWindow doesn't render HTML

Franky Braem f.braem at skynet.be
Thu Dec 20 12:04:21 PST 2007


Stefan Csomor wrote:
> Hi
> 
> Franky Braem wrote:
>>
>> chris elliott wrote:
>>>
>>>
>>> Franky Braem wrote:
>>>
>>>> When the wxHtmlWindow is created in the exe everything works ok. 
>>>> When the wxHtmlWindow is created in a DLL, it doesn't work.
>>>
>>> Thank, you, but if I am to look at this, I need to know exactly which 
>>> sample shows the bug, (and which compiler/and wxversion)
>>> chris
>>>
>>
>> It's a little bit difficult to write a sample application. It's my 
>> wxJavaScript shell program, that is used as exe and a dll which is 
>> used as port to wxHtmlWindow. I have found out that when I load 
>> wxmsw28ud_html_vc_custom.dll with LoadLibrary before doing anything 
>> else, the tag handlers are correctly registered. When I don't do this, 
>> no handler is registered.
> the problem is probably that the wxModule that is responsible for 
> loading must be in the wx'modules list already at the right moment, in 
> order to be initialized properly. So if you load the lib after the wx 
> module init sequence has been executed it is too late, and these will 
> not be initialized. You would have to use something like 
> wxPluginManager::LoadLibrary which on its turn executes a 
> RegisterModules call on the wxPluginLibrary which initializes newly 
> added wxModules.
> 
> Best,
> 
> Stefan
> 
When I load the wx_html library in the exe with wxPluginManager, 
everything works fine. When I load the wx_html library in my 'GUI' dll, 
it doesn't work. Is there a way to make it work from the GUI dll? 
Because this is the library that needs the html library. The exe can 
also be used without GUI.

Franky.






More information about the wx-users mailing list