Hi,

Ryan Jendoubi wrote:

After installing Alien::wxWidgets and Wx-0.92 though, I'm not able to install Wx::ActiveX [1].

Any advice on what could be causing this error would be greatly appreciated.

Apologies, but it seems that I did not release updates to CPAN the last time I made changes.

If you download the source from SVN (it is in the wxPerl repository), that should work - I'll get around to updating CPAN soon.

I don't think you are interested in the dynamic aspects and code creation parts of wxActiveX.

I think you should use as your template cpp/wxIEHtmlWin.
To make this work for wxPerl, first steps are in cpp/PlActiveX.h
wxPerl provides macros for you to use in creating object classes. The source code for wxPerl is full of examples.
In the case of wxIEHtmlWin, there is just the basic minimum window setup.

Next steps are in XS/IEHtmlWin.xs
Note the constructor wxIEHtmlWin::new returns an object of type wxPliIEHtmlWin which we defined with the macros in cpp/PlActiveX.h.

Next steps - ActiveX.xs for basic includes.

Next step - typemap - tell the compiler about your types.

Final step - standard loading for xs portion of a module - though you should probably use
Wx::wx_boot( 'Wx::Webkit', $VERSION ) ;
rather than XSLoader directly.

You mentioned looking at the way activex events were handled. Again, I don't think this is what you want. With wxWebkit, I assume you already know at compile time which events you are interested in.

Hope some of this helps.


Mark
















Reply via email to