ActiveState Community

Windows

PerlCtrl to make dll files

OS: Windows

I was told that PerlCtrl can be used to create DLL files that I can link from a 3rd software.

Is this true?

If so, can anyone post a sample perl script with input int x and gives back x+1; and post also the perlctrl command to convert said perl script into a dll.

thanks. with that I can study how to use perlctrl.

BTW. there is no perlctrl examples on the documents that came with the install..

perlsvc Startup function problems

OS: Windows

Searching here and with Google hasn't given me what I need so far.

I'm a lifelong *nix developer, so perl on Windows is rather new to me. I'm using the perlsvc tool to make a Windows service. This service provides a web service using SOAP::Transport::HTTP::Daemon.

The problem is the service hangs on "Starting." My Startup function is below:


sub Startup {
## Set up my webservice call
my $soap = SOAP::Lite
-> uri('http://bmc.com/webservices')
-> on_action( sub { join '/', 'http://bmc.com/webservices', $_[1] } )

MultiSession - "start new session" vs "go" catching syntax error

OS: Windows

I am doing multi-session debugging on client.tcl and server.tcl.

I am getting a sytax error in proc read_stdin of the client. ": variable references require preceding $"

proc read_stdin {wsock} {
  global  eventLoop
  set l [gets stdin]         ;#---> ": variable references require preceding $"
  if {[eof stdin]} {
    close $wsock             ;# close the socket client connection
    set eventLoop "done"     ;# terminate the vwait (eventloop)
  } else {
    puts $wsock $l           ;# send the data to the server
  }
}

Preventing instrumentation

OS: Windows

I am trying to debug an application that calls out to a second application written in Tcl. Komodo is trying to instrument the second application as well but I don't want or need to debug the second one.

Win32::TieRegistry fails during require

OS: Windows

I have some code I am trying to run on Windows XP. I have ActivePerl 1.10.1 installed with Komodo IDE 5.2 running. I'm trying to conditionally include Win32::TieRegistry when running under Windows. If I use require Win32::TieRegistry it dies but works with use Win32::TieRegistry.

PerlApp, Windows 7, and Piped Filehandles

OS: Windows

I'm having an issue that I'm almost certain is a problem with PerlApp.

I have a Tk GUI application compiled with PerlApp (with the option to hide the console enabled). I have another application that is text-based and compiled with PerlApp (also with the option to hide the console enabled). The two applications work together ... The Tk GUI app starts the text-based app and uses a pipe on the filehandle to redirect the text-based app's output to the GUI app.

Example:

open(APP, 'C:\Apps\Text-Based.exe |');
while(my $line_data = )
{
do_something($line_data);
}

PDK problems with non-ascii usernames. bug

OS: Windows

Hello.
Application can't start if Username have non-ascii characters.

Try to build this:

#!/usr/bin/perl -w
use strict;
use Tkx;

Tkx::package_require('treectrl');

...
Tkx::MainLoop();

app.exe:
invalid command name "442" at /NON-ASCII\Documents\Dev\app\
\app.exe>Tcl.pm line 543.

Installing Gtk2 on Activestate Perl 5.10

OS: Windows

Anyone had a recipe that works? I've tried several different sets of directions but I'm still unable to install the Gtk2 module.

Yes, I've tried "ppm install Gtk2"

That just gives me an error that it can't find a package providing Gtk2.

Cannot create new instance of object

OS: Windows

I am trying to modify a working script (older version of ActiveState Perl but I am getting a error trying to create a new instance of a window. This is the error message I am getting.

Can't locate object method "new" via package "MainWindow" (perhaps you forgot to load "MainWindow"?) at crorausers.pl line 726.

The code at Line 726 is:
#---------------------------------------------------------------#
#-- Create the main window --#
#---------------------------------------------------------------#

Komodo IDE 5 won't open remote files, but can browse, also won't use putty agent

OS: Windows

I currently have
Komodo IDE 4.4.1, build 20896 (hereby refereed to as Komodo 4)
and
Komodo IDE 5.1.4, build 30485 (hereby refereed to as Komodo 5)
installed on
Windows XP SP3
and
Windows Server 2003 R2 SP2

The circumstances list affect both computers in the same way
I can browse for a remote file but not open under Komodo 5