Perl/Tk and PerlCtrl

Posted by gpetrowitsch on 2007-01-18 00:03

Dear all,

I'm trying to turn a small Perl/Tk script into an ActiveX control using PerlCtrl from ActiveState. While this is easy for Perl scripts that don't include a GUI, I can't figure out, how to build the Tk-GUI and start the event loop (MainLoop in Tk) if the script is to be used as an ActiveX control.

Just calling "MainLoop" crashes the host application (e.g. Visual Basic) which uses the ActiveX control.

Does anyone have experience with this?

Thanks and regards,
Gerhard