Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Creating a COM/OLE server

by crenz (Priest)
on Feb 25, 2005 at 10:34 UTC ( #434419=perlquestion: print w/replies, xml ) Need Help??
crenz has asked for the wisdom of the Perl Monks concerning the following question:

I've perused the documentation of Win32::OLE, but it mentions nothing about creating your own COM/OLE servers. How can I prove to my colleague that this can indeed be done using Perl? :)

Replies are listed 'Best First'.
Re: Creating a COM/OLE server
by gellyfish (Monsignor) on Feb 25, 2005 at 10:44 UTC
Re: Creating a COM/OLE server
by holli (Monsignor) on Feb 25, 2005 at 10:39 UTC
    You canīt. At least not with pure Perl. But there is the PerlDevKit from ActiveState, that contains PerlCtrl, a tool to write ActiveX-Dlls.

    holli, /regexed monk/
Re: Creating a COM/OLE server
by Anonymous Monk on Feb 26, 2005 at 04:24 UTC
    Using Windows Script Components (WSC) you can put PerlScript inside *.wsc files, register them into the local COM registry, and then load up your Perl-COM components from anything else that can use COM.

    No compiling necessary.

    Take a look at ActiveState's description:

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://434419]
Approved by Arunbear
Front-paged by grinder
[Discipulus]: why perl -e 'print q(\'a string\'),"\n"' gives -bash: syntax error near unexpected token `)' ??
[Discipulus]: i'm not escaping correctly?
[moritz]: Discipulus] iirc bash doesn't let you escape ' with \
[moritz]: not inside a single-qouted string at least
[moritz]: echo 'a'\''

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-11-24 10:11 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (346 votes). Check out past polls.