Jeremy White wrote:
I'm in trouble using Win32::GUI together with Event::RPC::Server. How
can I run both in my script?

The RPC parts needs the following lines to start:

my $server = Event::RPC::Server->new (
        port    => 5555,
);
$server->start;

and Win32::GUI needs:
Win32::GUI::Dialog();

both are started as threads! How can I start both in one script??

Create a thread and start RPC in that thread, then do Win32::GUI::Dialog() in the main thread.

If you're going to do this, you might find Win32::GUI::ThreadUtils useful - available from http://www.robmay.me.uk/win32gui/

Regards,
Rob.

Reply via email to