Hi,

You need to put 

use Wx::Perl::Packager;

at the top of your script.

For future reference, when you are first building using PerlApp, it is useful 
to set the GUI parameter to zero.
Then any messages relating to failure on startup will appear on STDOUT.
Once you have a working app, you can switch the GUI param back to 1 and rebuild.

Regards

Mark



Octavian Rasnita wrote:
> 
> Here is the test.pl file I've used:
> 
> use Wx;
> 
> package MyApp;
> 
> use base 'Wx::App';
> 
> sub OnInit {
> my $self = shift;
> my $frame = MyFrame->new();
> $self->SetTopWindow($frame);
> $frame->Show(1);
> 1;
> }
> 1;
> 
> package MyFrame;
> 
> use base 'Wx::Frame';
> 
> sub new {
> my $class = shift;
> my $self = $class->SUPER::new(undef, -1, "Test app", [-1, -1], [-1, -1]);
> return $self;
> }
> 1;
> 
> package main;
> 
> my $app = MyApp->new();
> $app->MainLoop();
> 



Reply via email to