Hi Mark,
Thanks for your reply,
Mark Dootson wrote:
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 got the same errors after downloading the source, again attached. I
downloaded wxActiveX/trunk from the repo through the svn browser.
Version number of lib/Wx/ActiveX.pm is 0.12, /trunk is most recently
updated, about 6 months ago. Have I got the right thing?
I don't think you are interested in the dynamic aspects and code
creation parts of wxActiveX.
No, you're right. I've already covered most of the steps you mentioned I
think and have wxWebKit objects working in wxPerl applications, I'm just
examining your code for the final step you described, events.
I do indeed know at compile time which I'll need, but I was hoping to
see the output of a run of activex_get_event_code to see how to
'register' them with Wx, even though I won't be doing so dynamically.
For instance I see you using the Wx::NewEventType method which isn't
mentioned in the Wx API doc.
I find a lot of the descriptions in that document pretty dense; I'd
assume wxPli_create_evthandler would be useful to me, but its
description isn't terribly helpful. I'll look around the main Wx source
some more to see where its used, although I get the impression the main
distro can get very involved, whereas the ActiveX module, being built
"from the outside" using the API should be more useful for me to look
at. Also, Mattia recommended it as the best thing to look at :)
Cheers,
-- Ryan
g++ -fvtable-thunks -O2 -mthreads -Os -c -I.
-IC:\strawberry\perl\site\lib\Wx
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\lib
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include
-IC:\strawberry\perl\site\lib\Alien\wxWidgets\msw_2_8_10_uni_gcc_3_4\include
-s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS
-fno-strict-aliasing -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\"0.12\"
-DXS_VERSION=\"0.12\" "-IC:\strawberry\perl\lib\CORE" -DWXPL_EXT
-DHAVE_W32API_H -D__WXMSW__ -D_UNICODE -DWXUSINGDLL -DNOPCH -DNO_GCC_PRAGMA
ActiveX.c
cc1plus.exe: warning: switch "-fvtable-thunks" is no longer supported
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:49,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:395:42:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:49,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:395:
error: expected primary-expression before ';' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:398:49:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:398:
error: expected primary-expression before ';' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:401:49:
macro "PerlDir_seek" requires 2 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/ios_base.h:401:
error: expected primary-expression before ';' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4306:
error: expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4306:
error: expected `)' before '(' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4324:65:
macro "PerlLIO_open" passed 3 arguments, but takes just 2
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4324:
error: expected `;' before "const"
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4353:
error: expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4353:
error: expected `)' before '(' token
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4483,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/messages_members.h:50:18:
macro "PerlLIO_open" passed 3 arguments, but takes just 2
In file included from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/locale_facets.h:4483,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/bits/basic_ios.h:44,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ios:51,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/ostream:45,
from
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/iostream:45,
from ./cpp/wxactivex.h:75,
from ./cpp/wxactivex.cpp:59,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/c++/3.4.5/mingw32/bits/messages_members.h:49:
error: expected initializer before "const"
In file included from ./cpp/wxactivex.cpp:77,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233:64:
macro "PerlLIO_open" passed 5 arguments, but takes just 2
In file included from ./cpp/wxactivex.cpp:77,
from ActiveX.xs:22:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
ISO C++ forbids initialization of member `PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
making `PerlLIO_open' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:233: error:
`PerlLIO_open' declared as a `virtual' field
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:234: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:234: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335:24:
macro "PerlSock_select" requires 5 arguments, but only 1 given
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
ISO C++ forbids initialization of member `PerlSock_select'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
making `PerlSock_select' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlSock_select'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:335: error:
`PerlSock_select' declared as a `virtual' field
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:501: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:501: error:
expected `)' before '(' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508:66:
macro "PerlLIO_open" passed 5 arguments, but takes just 2
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
ISO C++ forbids initialization of member `PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
making `PerlLIO_open' static
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
ISO C++ forbids in-class initialization of non-const static member
`PerlLIO_open'
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/Mshtml.h:508: error:
`PerlLIO_open' declared as a `virtual' field
In file included from ActiveX.xs:22:
./cpp/wxactivex.cpp:1882:16: warning: multi-character character constant
./cpp/wxactivex.cpp:1916:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1920:16: warning: multi-character character constant
./cpp/wxactivex.cpp:1963:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1970:20: warning: multi-character character constant
./cpp/wxactivex.cpp:1973:16: warning: multi-character character constant
dmake: Error code 129, while making 'ActiveX.o'