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 » correlId is not a member of "struct tagMQMD"

Post new topic  Reply to topic
 correlId is not a member of "struct tagMQMD" « View previous topic :: View next topic » 
Author Message
waugh
PostPosted: Tue Mar 02, 2004 11:02 am    Post subject: correlId is not a member of "struct tagMQMD" Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Tue Mar 02, 2004 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
clindsey
PostPosted: Tue Mar 02, 2004 11:20 am    Post subject: Reply with quote

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
View user's profile Send private message
waugh
PostPosted: Tue Mar 02, 2004 11:52 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 225

thats right!!!

it was a type error, thanks guys.. i will also try memcpy...
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 » correlId is not a member of "struct tagMQMD"
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.