|
From: Eric W. <scr...@gm...> - 2006-09-10 23:51:06
|
# from Mark Dootson
# on Sunday 10 September 2006 02:28 pm:
>As a temp fix assuming you are using wxWidgets 2.6.x or later
>you can comment out the three lines for
>SetTransparent()
>CleanUpClasses
>InitializeClasses
>
>for the wxLogTrace stuff, you can either comment them out or change
>
>from
>wxLogTrace(wxT('My Message'))
>to
>wxLogTrace('%s', wxT('My Message'))
Thanks, that does get it to build and it seems to still work outside the
par. Now we're back to only the one (original) problem.
>With regard to your earlier question (packaging Win32::OLE), have you
>tried simply loading Win32::OLE before you load Wx::ActiveX?
That doesn't seem to help. The trouble seems to be with these
LoadLibrary() and GetModuleHandle() calls (windows api?)
And (now that I can actually try it), neither does the suggestion from
the older thread of using:
SV *sv = get_sv("PerlApp::Win32_OLE", FALSE);
hmodule = GetModuleHandle(sv ? SvPV_nolen(sv) : "OLE");
because hmodule == 0
if (hmodule != 0) {
we never get to the important bit.
But, I managed to follow-up on the rather vague reference to this having
been fixed before and located the "Try to find using Dynaloader" code
in Win32::GUI::AxWindow
http://search.cpan.org/src/LROCHER/Win32-GUI-AxWindow-0.07/AxWindow.xs
And now all is well (except for the many hours which are now dead and
gone.)
I'll push these changes out to CPAN as soon as I am able (read that as:
"hey, frustrated programmer in 2007, ping me if I haven't done it
yet.")
--Eric
--
I arise in the morning torn between a desire to improve the world and a
desire to enjoy the world. This makes it hard to plan the day.
--E.B. White
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------
|