Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Win32::API error - OpenThread could not be located in kernel32.dll

by fx (Pilgrim)
on Jun 30, 2004 at 14:19 UTC ( [id://370766] : perlquestion . print w/replies, xml ) Need Help??

fx has asked for the wisdom of the Perl Monks concerning the following question:

I am attempting to use Win32::API 0.41 under Windows NT 4.0 and ActiveState Perl v5.8.3 to open a DLL from a third party application so that I can control it from Perl.

I have all the relevant DLLs in the correct place and when I try to call:

my $thingy = new Win32::API( 'omdapi', 'OMDClientCreate', 'PPPIP', 'P' );

I get a Windows error message that says:

The procedure entry point OpenThread could not be located in the dynamic link library KERNEL32.dll.

I'm stuck. Could someone offer some advice?

fx, Infinity is Colourless

Replies are listed 'Best First'.
Re: Win32::API error - OpenThread could not be located in kernel32.dll
by BrowserUk (Patriarch) on Jun 30, 2004 at 15:11 UTC

    This is not a Perl issue.

    However, the problem is that the dll you are trying to use was not designed for use with NT. The OpenThread api did not become available until W2K

    See the "Requirements" section at the bottom of this page.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

      Ah, I see...

      I was reliably informed that said third party app ran under NT 4. I now see that it, or at least the DLL I have, needs Windows 2000.

      Thanks,

      fx, Infinity is Colourless