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

2010-02-25 Thread Jim Michaels
Cc: mingw64 mingw-w64-public@lists.sourceforge.net; mingw users mingw-us...@lists.sourceforge.net 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

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 to fit in 32 bits. It

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

2010-02-21 Thread NightStrike
for solutions): #if !defined(_WIN64) ...//win9x code #endif From: Ozkan Sezer seze...@gmail.com To: Jim Michaels jmich...@yahoo.com Cc: mingw64 mingw-w64-public@lists.sourceforge.net Sent: Fri, February 19, 2010 1:28:02 AM Subject: Re: [Mingw-w64-public] x64

[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_castDWORD( 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 ;