in reply to Re^3: Calling a function form an external DLL with Inline::C on windows
in thread Calling a function form an external DLL with Inline::C on windows

AHA! Thanks!

If I define a wrapper function around the existing library function and call that (the wrapper) from perl, it seems to work.

According to Inline::C's documentation there is an AUTOWRAP mode, which would alleviate the need for those wrapper functions, but I couldn't make it work so far.
  • Comment on Re^4: Calling a function form an external DLL with Inline::C on windows

Replies are listed 'Best First'.
Re^5: Calling a function form an external DLL with Inline::C on windows
by BrowserUk (Patriarch) on Aug 06, 2010 at 09:46 UTC

    I had a couple of goes at the AUTOWRAP, and I couldn't work out the magic incantations to make it work either.

    With regard to Win32::API.

    Which versions that module and Perl are you using?

    Is the Perl home built? If so with which compiler?

      The Perl on this computer is ActiveState's 5.10.0 standard distribution:

      This is perl, v5.10.0 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2007, Larry Wall Binary build 1002 [283697] provided by ActiveState http://www.ActiveSt +ate.com Built Jan 10 2008 11:00:53
      I installed Win32::API v0.59 with their ppm utility. So that is also pre-built and "standard". By the way the MinGW and Inline packages are from the same source (their package repository).