How to compile wxActivex (wxIe) with wxwidgets 2.8

2007-09-27

A guide on how to modify wxActivex to compile with wxwidgets 2.8

Because wxIe was written some time ago when wxwidgets 2.6 was popular, there are some code changes in wxwidgets that does not allow compilation of wxIe without any code modification.

Here is a list of modifications to successfully compile wxIe with wxwidgets 2.8

on wxActiveXFrame.cpp modify line 117 to this

X -> Connect(101, ev, (wxObjectEventFunction) &wxActiveXFrame :: OnActiveXEvent); //old code was Connect(101, ev, (wxObjectEventFunction) OnActiveXEvent);

A previous error that I had was that min function expected 3 parameters and it was called with 2, I resolved the problem by using DoMin instead of min which I declared on top of the file.

//here is the code const double DoMin (const double arg1, const double arg2) { /* return min(arg1, arg2);*/ return (arg1 < arg2 ? arg1 : arg2) ; }

Share this with the world

Comments

No comments at this time

Make yourself heard

Categories

Subscribe

All Posts

wxWidgets posts

All Comments

This post comments

© Copyright CodeAssembly

All code is licensed under LGPL, unless otherwise noted