|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
correlId is not a member of "struct tagMQMD" |
« View previous topic :: View next topic » |
Author |
Message
|
waugh |
Posted: Tue Mar 02, 2004 11:02 am Post subject: correlId is not a member of "struct tagMQMD" |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
this is what i have as definitions:
MQMD mdget = {MQMD_DEFAULT}; /* Message Descriptor */
MQGMO gmoget = {MQGMO_DEFAULT}; /* get message options */
i am copying a string into correlation ID of MQMD here...
correlID is the variable which contains the string.
strcpy(mdget.correlId, correlID);
i am getting the following error on compilation at above line,
-----------------------------------------------------------
correlId is not a member of "struct tagMQMD"
the specified member does not belong to the structure or union given.
-----------------------------------------------------------
did i miss something? |
|
Back to top |
|
 |
vennela |
Posted: Tue Mar 02, 2004 11:14 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Code: |
strcpy(mdget.correlId, correlID);
|
I think it is mdget.CorrelId
C is capitalized. |
|
Back to top |
|
 |
clindsey |
Posted: Tue Mar 02, 2004 11:20 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Yep, the 'c' in correlId is uppercase. Also I would recommend memcpy since you are copying bytes and you have control of the length.
Try memcpy(mdget.CorrelId, correlID, MQ_CORREL_ID_LENGTH);
Charlie |
|
Back to top |
|
 |
waugh |
Posted: Tue Mar 02, 2004 11:52 am Post subject: |
|
|
 Master
Joined: 19 Feb 2004 Posts: 225
|
thats right!!!
it was a type error, thanks guys.. i will also try memcpy... |
|
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
|
|
|
|