From: Mattia B. <mb...@ds...> - 2001-09-28 20:01:50
|
> Hi, > > I'm trying to load a JPG file in a wxImage object, which fails in every > way. First I tried this code: > > Wx::InitAllImageHandlers(); > my $image = Wx::Image->new(); > $image->LoadFile("i.jpg", wxBITMAP_TYPE_JPEG); > > Which results in: > "Undefined subroutine &Wx::Image::LoadFileSType called at > C:/perl/site/lib/Wx/Image.pm line 44. Use ->LoadFileType, as a temporary solution. > After that I tried to do it with: > > Wx::InitAllImageHandlers(); > my $image = Wx::Image->new("i.jpg", wxBITMAP_TYPE_JPEG); > > Which results in a pagefault, with details: Weird > Any suggestions? > > I'm running Windows 98, using ActiveState Perl 5.6.0 and wxPerl 0.7 > (binary PPD distribution). Regards Mattia |