Tue Nov 26 03:59:20 2013: Request 90597 was acted upon. Transaction: Correspondence added by eduard1...@gmail.com Queue: Win32-API Subject: Re: [rt.cpan.org #90597] module Win::API (0.75) installation failed Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: eduard1...@gmail.com Status: patched Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=90597 >
With debug I got the following error: *FAILED Loading library 'jtagvsdll': 193* The function JtagWriteReg exported, dll exists. As I already wrote it works perfect under old cygwin (32-bit). I run the same perl scritps from the same directories, simply launch another cygwin. We didn't face with problem to use 32-bit DLL in the 64-bit windows before On Mon, Nov 25, 2013 at 9:39 PM, Daniel Dragan via RT < bug-win32-...@rt.cpan.org> wrote: > <URL: https://rt.cpan.org/Ticket/Display.html?id=90597 > > > On Mon Nov 25 11:31:32 2013, eduard1...@gmail.com wrote: > > Hi, > > new() returns undef > > example of the C prototype: > > *int JtagWriteReg(unsigned long uiRegister, unsigned long ulValue ) * > > > > We're using the module Win32::API with 64-bit windows, but with 32-bit > > Cygwin. It works perfect > ................ > > > > *$JtagWriteReg = new Win32::API('jtagvsdll', > > > > 'JtagWriteReg','NN','I', > > > > '_cdecl' );* > > The 'NN' should be 'II', but that IS NOT the source of your problem. I > recommend you turn on Win32::API's undocumented debug logging, before > calling new(). To do this, put "$Win32::API::DEBUG = 1;" before new(). Alot > of console logging will be outputted. Either 'JtagWriteReg' is not > exported, or jtagvsdll is a 32 bit DLL being loaded into a 64 bit process, > or jtagvsdll.dll does not exist. > -- Best regards, Eduard