ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Why is MQOD structure different length in 64 bit?

Post new topic  Reply to topic
 Why is MQOD structure different length in 64 bit? « View previous topic :: View next topic » 
Author Message
markneil
PostPosted: Fri Nov 21, 2008 9:58 am    Post subject: Why is MQOD structure different length in 64 bit? Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 21, 2008 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
markneil
PostPosted: Fri Nov 21, 2008 10:07 am    Post subject: Reply with quote

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
View user's profile Send private message
markt
PostPosted: Fri Nov 21, 2008 10:11 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

MQPTR ObjectRecPtr;
MQPTR ResponseRecPtr;
Back to top
View user's profile Send private message
markneil
PostPosted: Fri Nov 21, 2008 10:47 am    Post subject: Reply with quote

Apprentice

Joined: 09 Sep 2003
Posts: 26

Ah...of course.
Thank you.

Good weekend.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Why is MQOD structure different length in 64 bit?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.