sweetblood has asked for the wisdom of the Perl Monks concerning the following question:

Please excuse my lack of windows savy, it's been a while since I've really done any significant windows programming. But does anyone know of a way to turn a perl script into an activeX?
I'd hate to have to break out my old c++ compiler and come to think of it I doubt the version I have would let me create an activex anyway.
Thanks!

Replies are listed 'Best First'.
Re: Perl 2 activex?
by dbush (Deacon) on Oct 16, 2003 at 18:59 UTC

    ActiveState do something called PerlCtrl in the Perl Development Kit that does this conversion. Unfortunately it isn't free but they do an evaluation version.

    I have a copy of this and it works fine for me.

    Regards,
    Dom.

      Thanks for the advice. I'll check that out. Do you subscribe to the PerlASPN? I'm not sure it's worth the $500 any opinions?

        I'm afraid that I don't subscribe and so I can't offer any opinion... Does anyone else use it?

        Regards,
        Dom.

Re: Perl 2 activex?
by inman (Curate) on Oct 16, 2003 at 19:51 UTC
    My first response is why?.

    Sorry if I am being dramatic it's just that I used to do some ActiveX programming and it really was a pain. You could do it reasonably well using visual C++ and ATL if you needed to be small and were targeting IE users or you could even use Visual Basic if you didn't mind shipping the huge supporting DLLs...

    The real question is what do you want need to do with your ActiveX control that requires Perl? The reason I say this is that the chances are that you are trying to solve a problem that is either better accomplished using something else or can be solved in another way using perl.

    inman

      Yeah that's the way I feel about it too, but I have to do something so simple in Perl(in fact I've done before) that would be a real pain in c++. Connect to a pop server and return info about the inbox. The final target requires either an activex or a com object. I'ts one of those things that is probably not worth investing a lot of time in.
(OT) Re: Perl 2 activex?
by rob_au (Abbot) on Oct 16, 2003 at 22:49 UTC
    I know this is off-topic but when I read this topic my immediate thought was "Why is someone wanting to use ActiveX with Perl 2?", followed closely by "Why is anyone using Perl 2?".

    Reading the node clarified this confusion ... somewhat.

    :-)

     

    perl -le "print+unpack'N',pack'B32','00000000000000000000001010001001'"