Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you create windows DLL's in Perl?

Status
Not open for further replies.

MrMango

Programmer
Feb 3, 2000
7
US
I come from a UNIX programming background, having spent the past couple of years writing almost exclusively tcl/tk code (with a little bit of Perl when my boss wasn't looking) on a Solaris platform.<br><br>In my new job, I'm doing exclusively windows programming and am finding that the easy things on Unix are hard on windows.&nbsp;&nbsp;There are some basic things that are easy in perl (and tcl/tk) that I would like to import into this VB-like programming language I'm using.&nbsp;&nbsp;I can import DLLs written in C or C++, but it's been too long since I've used those languages so I thought I'd see if anyone here knew how to &quot;compile&quot; perl functions into a DLL.<br><br>Thanks,<br>David
 
You can buy a perl compiler (from Active State) and create a COM-Server from your perl program. But I think a better solution is the Windows Scripting Host (WSH). Active State's Perl distribution comes along with a Perl Scripting Engine. Perl scripts can run under control of WSH. MS offers a Script Control that can be used in VB programs.
 
I solved my problems porting my Per scripts to NT and compiling with Perl2exe and then compressing with Aspack, getting an .EXE with about 300Kb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top