The PDK PerlApp Docs say that it creates freestanding executables by default. Also, you can create freestanding executables with the evaluation version but they will stop working when the evaluation period ends. Just be sure that you are using the latest version because it fixes some bugs.
If you run perlapp with the --xclude command line option (which I don't recommend), you will need to include perl56.dll with your program in order for it to work.
So you can call your executable like this:
my $command = ".\\destroy.exe"; # change path as needed
my $args = "";
my $process;
Win32::Process::Create($process,
$command,
$args,
0,
DETACHED_PROCESS,
'.') || &error(); # fixed typo
Update: I think the code sample is right. If not, can someone please tell me what is wrong with it?
|