Perl: the Markov chain saw | |
PerlMonks |
Re: Calling a C API in a dll from Perl on Windowsby broquaint (Abbot) |
on Jun 24, 2002 at 15:32 UTC ( [id://176827]=note: print w/replies, xml ) | Need Help?? |
If you're using Inline::C then it's as simple as setting the AUTO_INCLUDE (and optionally INC) parameter and calling the appropriate functions from within the C code.
You could learn up on XS and write your own module, but this route in somewhat trickier. There's also the handy C::DynaLib module which is specifically designed for interfacing with C libraries from within perl. Here's an example from the module docs
HTH
_________
In Section
Seekers of Perl Wisdom
|
|