Something must have gone wrong when building Wx ... it doesn't work in Wx 0.95, but works in Wx-0.96

http://search.cpan.org/grep?cpanid=MBARBON&release=Wx-0.96&string=WriteImage&i=1&n=1&C=0

459: %name{WriteImageFile} bool WriteImage( const wxString& filenam +e, 461: %name{WriteImageBitmap} bool WriteImage( const wxBitmap& bitma +p, 463: %name{WriteImageImage} bool WriteImage( const wxImage& image, 712:WriteImage( ... ) 715: MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wimg_n, WriteImageI +mage, 1 ) 716: MATCH_REDISP_COUNT_ALLOWMORE( wxPliOvl_wbmp_n, WriteImageB +itmap, 1 ) 717: MATCH_REDISP( wxPliOvl_s_n, WriteImageFile ) 718: END_OVERLOAD( "Wx::RichTextCtrl::WriteImage" )
#!/usr/bin/perl -- use strict; use warnings; use Wx; use Wx::RichText; my $png = shift(@ARGV) || 'camel.favicon.png'; my $rtc = Wx::RichTextCtrl->new; my $img = Wx::Image->new( $png, Wx::wxBITMAP_TYPE_ANY() ); my $bmp = Wx::Bitmap->new( $png, Wx::wxBITMAP_TYPE_ANY() ); my $ico = Wx::GetWxPerlIcon(); for my $i ( $png, $img, $bmp, $ico ) { printf "%03d %s\n %s\n\n", __LINE__, $i, eval { $rtc->WriteImage($i); 1 } || $@; } printf "%03d %s\n %s\n\n", __LINE__, $png, eval { $rtc->WriteImage( $png, Wx::wxBITMAP_TYPE_ANY() ); 1 } || $@; printf "$_\n" for grep /image/i, keys %Wx::RichTextCtrl::; __END__ 016 camel.favicon.png unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage +" at 2 line 17 eval {...} called at 2 line 17 016 Wx::Image=SCALAR(0x9ff81c) 1 016 Wx::Bitmap=SCALAR(0xd53534) 1 016 Wx::Icon=SCALAR(0x9ffabc) unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage +" at 2 line 17 eval {...} called at 2 line 17 020 camel.favicon.png 1 WriteImageImage AddImage WriteImageFile WriteImageBitmap WriteImage

In reply to Re: unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage" by Anonymous Monk
in thread unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage" by Steve_BZ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.