Re: [rt.cpan.org #55660] [PATCH] Partial win64 support for Win32::API

[email protected] ("[email protected] via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Mon May 10 08:19:17 2010: Request 55660 was acted upon.
Transaction: Correspondence added by [email protected]
       Queue: Win32-API
     Subject: Re: [rt.cpan.org #55660] [PATCH] Partial win64 support for Win32::API 
   Broken in: (no value)
    Severity: (no value)
       Owner: COSIMO
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=55660 >



----- Original Message ----- 
From: "Cosimo Streppone via RT" <[email protected]>

>
> Please send me your API_test64.dll.

Sure - I'll send it to you offlist. (Anyone else wants one just let me 
know.)

>>
>> Otherwise, when trying to compile the obj file,

(by which I meant that when I ran 'cl -c API_test.cpp')

>> I got errors of the
>> type:
>>
>> API_test.cpp(31) : error C2491: 'nAPI_test' : definition of dllimport
>> data
>> not allowed
>> API_test.cpp(33) : error C2491: 'sum_integers' : definition of
>> dllimport
>> function not allowed
>> API_test.cpp(37) : error C2491: 'sum_integers_ref' : definition of
>> dllimport
>> function not allowed
>> [and more similar]
>
> That's strange. I don't understand.

Yes, seems odd to me that the existing source is (apparently) legal for some 
MS compilers, but not others.

> I'm trying to get access to a x64 environment with a working MSVC, to
> test this.

The compiler I'm using (which is the same compiler that ActiveState used to 
build their x64 perl) is not strictly an MSVC++ compiler - it's the 
"Microsoft Platform SDK for Windows Server 2003 R2".

Jan reckons it's still freely available, and he's probably right. But I can 
no longer find a link to the damn thing - every link I come up with morphs 
into a download of  "Microsoft Platform SDK for Windows Server 2008", which 
(I think) is not the same thing.

Cheers,
Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.