in reply to Re^5: Perl calling my.DLL for serial port work.
in thread Perl calling my.DLL for serial port work.

I'm using ActiveState and did some research and found that
ppm install Win32-API
will install the API. As for code mods: I made the assumption that the 'I' and 'II' were place holders to pass the needed info to the program. The OPEN needs to know com port and baud rate. SSC_OPEN(port,baudrate) . The MOVE needs notified of SERVO number and SERVO location. SSC_MOVE(servo,position) Thanks again.... getting closer :-)

Replies are listed 'Best First'.
Re^7: Perl calling my.DLL for serial port work.
by ysth (Canon) on Feb 03, 2008 at 19:17 UTC
    No, the I and II are literal instructions to Win32::API as to how to pass those parameters. Win32::API->new returns an object that can be used to call the DLL function. You should only do the my $SSC_MOVE = ...; sub SSC_MOVE { ... } once, and then call the defined SSC_MOVE sub as many times as you want with the actual values.
      Ok... that's working nicely. Thanks!