Mon Mar 13 17:19:00 2017: Request 120581 was acted upon.
Transaction: Correspondence added by mike.shanno...@gmail.com
       Queue: Win32-API
     Subject: Re: [rt.cpan.org #120581] Win32::api::loadlibrary not returning 
value on Win 10
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: mike.shanno...@gmail.com
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=120581 >


$l_tmp is the location of the DLL - it is for testing purposes in the same
folder as the script calling the routing

$l_cedsni_handle = Win32::API->new($l_tmp, '_cedsniDump@8', 'PP', 'N');
$l_error = Win32::GetLastError();

$l_cedsni_handle contains a value of 0
$l_error  is 0

I am guessing there is an issue that the DLL was built for a Win32 system
and this script is running on a Win64 system (???)



On Mon, Mar 13, 2017 at 3:33 PM, Daniel Dragan via RT <
bug-win32-...@rt.cpan.org> wrote:

> <URL: https://rt.cpan.org/Ticket/Display.html?id=120581 >
>
> On Fri Mar 10 18:26:29 2017, mike.shanno...@gmail.com wrote:
> > When trying to load a DLL on Win 10 using Win32::api::Loadlibrary
> >
> > the routine returns a 0
> >
> > I have seen this same return on Win 7
> >
> > On Vista this worked.
> >
> > Could someone verify this and/or offer a work around?
>
>
> What does Win32::GetLastError() return?
>

Reply via email to