in reply to Re^3: Perl calling my.DLL for serial port work.
in thread Perl calling my.DLL for serial port work.
code to follow:C:\Perl\perlscripts>monks01.pl Can't locate Win32/API.pm in @INC (@INC contains: C:/Perl/site/lib C:/ +Perl/lib .) at C:\Perl\perlscripts\monks01.pl line 5. BEGIN failed--compilation aborted at C:\Perl\perlscripts\monks01.pl li +ne 5.
#! perl -w # use Win32; use Win32::API; my $SSC_OPEN = Win32::API->new( 'ssc-5', 'SSC_OPEN', '1', '2400', ); s +ub SSC_OPEN { $SSC_OPEN->Call(@_); }; # my $SSC_MOVE = Win32::API->new( 'ssc-5', 'SSC_MOVE', '1', '1', ); sub +SSC_MOVE { $SSC_MOVE->Call(@_); }; # my $SSC_CLOSE = Win32::API->new( 'ssc-5', 'SSC_CLOSE', '', '', ); sub +SSC_CLOSE { $SSC_CLOSE->Call(@_); };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Perl calling my.DLL for serial port work.
by Corion (Patriarch) on Feb 03, 2008 at 17:09 UTC | |
by kansaschuck (Sexton) on Feb 03, 2008 at 18:52 UTC | |
by ysth (Canon) on Feb 03, 2008 at 19:17 UTC | |
by kansaschuck (Sexton) on Feb 03, 2008 at 23:16 UTC |