|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Why is MQOD structure different length in 64 bit? |
« View previous topic :: View next topic » |
Author |
Message
|
markneil |
Posted: Fri Nov 21, 2008 9:58 am Post subject: Why is MQOD structure different length in 64 bit? |
|
|
Apprentice
Joined: 09 Sep 2003 Posts: 26
|
In the cmqc.h file, the MQOD structure is defined as different lengths depending on whether it is 32 or 64 bit platform. Why is this?
I don't have an issue...just trying to understand.
thanks
Mark
/****************************************************************/
/* Values Related to MQOD Structure */
/****************************************************************/
/* Structure Identifier */
#define MQOD_STRUC_ID "OD "
/* Structure Identifier (array form) */
#define MQOD_STRUC_ID_ARRAY 'O','D',' ',' '
/* Structure Version Number */
#define MQOD_VERSION_1 1
#define MQOD_VERSION_2 2
#define MQOD_VERSION_3 3
#define MQOD_CURRENT_VERSION 3
/* Structure Length */
#if defined(MQ_64_BIT)
#define MQOD_CURRENT_LENGTH 344
#else
#define MQOD_CURRENT_LENGTH 336
#endif
|
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 21, 2008 10:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Possibly because the length of such things as integer is different on 64 bit platform?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
markneil |
Posted: Fri Nov 21, 2008 10:07 am Post subject: |
|
|
Apprentice
Joined: 09 Sep 2003 Posts: 26
|
Possibly, but MQLONG on 32 bit is defined as 'long' and on 64 bit as 'int'. Aren't these equivenent?
It does seem a coincidence that there are 8 MQLONG fields in the structure, and the 64 bit version is 8 bytes longer. But I'd like to unbderstand why  |
|
Back to top |
|
 |
markt |
Posted: Fri Nov 21, 2008 10:11 am Post subject: |
|
|
 Knight
Joined: 14 May 2002 Posts: 508
|
MQPTR ObjectRecPtr;
MQPTR ResponseRecPtr; |
|
Back to top |
|
 |
markneil |
Posted: Fri Nov 21, 2008 10:47 am Post subject: |
|
|
Apprentice
Joined: 09 Sep 2003 Posts: 26
|
Ah...of course.
Thank you.
Good weekend. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|