Sent: Sun, February 21, 2010 4:27:57 PM
Subject: Re: [Mingw-w64-public] x64 can't cast ptr to DWORD
You should be able to use the same code for both if you use DWORD_PTR
On Sun, Feb 21, 2010 at 6:30 PM, Jim Michaels wrote:
>
>
> it's 32-bit windows 9x code, but the target is
>>> it's 32-bit windows 9x code, but the target is 64-bit, so I have to disable
>>> the 9x code.
>>> I found a workaround on the internet (great place to look for solutions):
>>> #if !defined(_WIN64)
>>> ...//win9x code
>>> #endif
Yep.
>>> Use DWORD_PTR instead.
>>>
>>> I don't think it's going
the internet (great place to look for solutions):
>> #if !defined(_WIN64)
>> ...//win9x code
>> #endif
>>
>>
>>
>> From: Ozkan Sezer
>> To: Jim Michaels
>> Cc: mingw64
>> Sent: Fri, February 19, 2010 1:28:
ed(_WIN64)
> ...//win9x code
> #endif
>
>
>
> From: Ozkan Sezer
> To: Jim Michaels
> Cc: mingw64
> Sent: Fri, February 19, 2010 1:28:02 AM
> Subject: Re: [Mingw-w64-public] x64 can't cast ptr to DWORD
>
> On Fri, Feb 19,
o look for solutions):
> #if !defined(_WIN64)
> ...//win9x code
> #endif
>
>
>
> From: Ozkan Sezer
> To: Jim Michaels
> Cc: mingw64
> Sent: Fri, February 19, 2010 1:28:02 AM
> Subject: Re: [Mingw-w64-public] x64 can't cast ptr t
ngw64
Sent: Fri, February 19, 2010 1:28:02 AM
Subject: Re: [Mingw-w64-public] x64 can't cast ptr to DWORD
On Fri, Feb 19, 2010 at 11:25 AM, Jim Michaels wrote:
> after much difficulty trying to get subscribed to the list, here is my
> question.
>
> #define CAST(x) reinterpret_ca
On Fri, Feb 19, 2010 at 11:25 AM, Jim Michaels wrote:
> after much difficulty trying to get subscribed to the list, here is my
> question.
>
> #define CAST(x) reinterpret_cast( x )
> or
> #define CAST(x) (DWORD)( x )
> ...
> // All msdos data structures must be packed on a 1 byte boundary
>
after much difficulty trying to get subscribed to the list, here is my question.
#define CAST(x) reinterpret_cast( x )
or
#define CAST(x) (DWORD)( x )
...
// All msdos data structures must be packed on a 1 byte boundary
#pragma pack (1)
struct {
DWORD StartingSector ;
WO