Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-25 Thread Jim Michaels
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

Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-22 Thread Ozkan Sezer
>>> 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

Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-22 Thread Kai Tietz
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:

Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-21 Thread Alon Bar-Lev
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,

Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-21 Thread NightStrike
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

[Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-21 Thread Jim Michaels
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

Re: [Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-19 Thread Ozkan Sezer
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 >   

[Mingw-w64-public] x64 can't cast ptr to DWORD

2010-02-19 Thread Jim Michaels
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