in reply to Perl calling my.DLL for serial port work.
You want to use Win32::API for accessing the code in the DLL. Most likely, the signatures will be:
my $SSC_OPEN = Win32::API->new( 'ssc-5', 'SSC_OPEN', 'II', 'I', ); sub SSC_OPEN { $SSC_OPEN->Call(@_); };
my $SSC_MOVE = Win32::API->new( 'ssc-5', 'SSC_MOVE', 'II', 'I', ); 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^2: Perl calling my.DLL for serial port work.
by kansaschuck (Sexton) on Feb 03, 2008 at 16:35 UTC | |
by Corion (Patriarch) on Feb 03, 2008 at 16:45 UTC | |
by kansaschuck (Sexton) on Feb 03, 2008 at 16:59 UTC | |
by Corion (Patriarch) on Feb 03, 2008 at 17:09 UTC | |
by kansaschuck (Sexton) on Feb 03, 2008 at 18:52 UTC | |
|