Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Win32::API - How to call an Imported function with Win32::API::Types ?

by fx (Pilgrim)
on Jul 02, 2004 at 11:24 UTC ( [id://371366] : note . print w/replies, xml ) Need Help??


in reply to Re^3: Win32::API - How to call an Imported function with Win32::API::Types ?
in thread Win32::API - How to call an Imported function with Win32::API::Types ?

According to the source, TCHAR is a valid type which is why I chose it. Hmm...

As you suggest, I shall put lots of error checking in and see what isn't being liked.

Thanks,

fx, Infinity is Colourless

Replies are listed 'Best First'.
Re^5: Win32::API - How to call an Imported function with Win32::API::Types ?
by fx (Pilgrim) on Jul 02, 2004 at 11:29 UTC

    Ok, I've just added ...or die $^E to every Win32::API module call and nothing is die'ing. As far as I can see the call to the function inside the DLL is actually working

    Hmm...

    fx, Infinity is Colourless

      Try initializing my $client = pack('L', 0); as you did in the code that worked.


      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