Mon Nov 25 14:39:24 2013: Request 90597 was acted upon.
Transaction: Correspondence added by BULKDD
Queue: Win32-API
Subject: module Win::API (0.75) installation failed
Broken in: (no value)
Severity: (no value)
Owner: Nobody
Requestors: [email protected]
Status: patched
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=90597 >
On Mon Nov 25 11:31:32 2013, [email protected] 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.