View Single Post
Old Nov 8th, 2005, 6:41 PM   #12
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
I wasn't sure, myself, which is why the caveat, but there is an import facility, looks something like this:
use Win32::API;
  $function = Win32::API->new(
      'mydll, 'int sum_integers(int a, int b)',
  );
  $return = $function->Call(3, 2);
Again, it's merely a possibility, not a proposed solution. I haven't used Perl since 1999, but Kaja's post seems like it would be an easy solution.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote