At 14:50 2002-03-17 +0000, Neil Osborne wrote: >I've read the doc "Extending Perl the easy way with Inline". However it >requires that you have the function definitions in the _DATA_ section.
No, there are other possibilities as well (external file, scalar variable etc), but yes, they all involve defining own your C-code functions (eh, right?). >I have purchased a third party library (I have the headers and the libs - >but not the source), and I need to create a Perl module using inline - any >suggestions ? Since you are using Windows, you can call the functions in the DLL using Win32::API module. If you want to use Inline::C, I guess the easiest way is to create simple wrapper C functions that become callable from Perl. Link with your DLL. In your particular case I'd go with Win32::API if I were you (assuming Win32 is absolutely, definitely your only target platform). Put the DLL in the PATH, e.g. in the same directory as the script itself. /J -------- ------ ---- --- -- -- -- - - - - - Johan Lindstr�m Sourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: "Choosing a Templating System [Aug. 21, 2001]" http://www.perl.com/pub/a/2001/08/21/templating.html?page=1
