Re: Win32:API Problem

2005-07-22 Thread Sisyphus
- Original Message - From: "David Legault" <[EMAIL PROTECTED]> To: "Dev - Perl Win32 Users - MList" Sent: Saturday, July 23, 2005 2:38 AM Subject: Win32:API Problem > Hello, > > I'm trying to use the Win32:API module to access a DLL function with > this perl code : > > $function = Win3

RE: send output to a parallel port?

2005-07-22 Thread robert johnson
um... sorry Ken, you are absolutely right. my WinXP does not allow writes to the IO port. It does on 98, and i mistakenly thought it was working on XP as well. technically, I only need this to work on the manufacturing's Win98 machines, and now methinks the working C-code might be just fine af

Re: Win32:API Problem

2005-07-22 Thread $Bill Luebkert
David Legault wrote: > Hello, > > I'm trying to use the Win32:API module to access a DLL function with > this perl code : > > $function = Win32::API->new( 'test.dll', 'int startSimulation(int > eRunMode)', ); Try an alternate calling method and see if it makes a diff : my $function =

Win32:API Problem

2005-07-22 Thread David Legault
Hello, I'm trying to use the Win32:API module to access a DLL function with this perl code : $function = Win32::API->new( 'test.dll', 'int startSimulation(int eRunMode)', ); $return = $function->Call(0); print $return; The C code for the function in the DLL is : int startSimulation( int eR

RE: help with defined and !not defined

2005-07-22 Thread Joe Discenza
Title: Re: help with defined and !not defined lorid wrote, on Fri 7/22/2005 10:27: my $a;: my $b;:: $b = 10;:: if (defined $a){ All well and good; but in your original post (which I no longer have available to quote, but I believe I recall correctly), your $a (or equivalent) was the result

Re: help with getting file stats

2005-07-22 Thread lorid
Eric Amick wrote: On Thu, 21 Jul 2005 12:05:08 -0700, you wrote: loris reply: yes I did try stat ("$dir/$file") it would not work , and I tried many variation here is what I finally got to work: print "Opening $dir \n"; opendir DH, $dir or die "Can't open the current dir $!\n"; while(

Re: help with defined and !not defined

2005-07-22 Thread lorid
Chris Wagner wrote: You want to check if it's null, not if it's defined. Defined means that the variable exists. You want something like if ($photo_year) {...}. At 01:48 PM 7/21/05 -0700, lorid wrote: my $ARGV[0] will sometimes be passed a string like this:nvIGRA with no date at end and