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 » MQCONNX in VB6

Post new topic  Reply to topic
 MQCONNX in VB6 « View previous topic :: View next topic » 
Author Message
michMQ63
PostPosted: Wed Nov 12, 2003 3:10 am    Post subject: MQCONNX in VB6 Reply with quote

Newbie

Joined: 12 Nov 2003
Posts: 2

Dim C_options As MQCNO
Dim CltPtr As MQCD

MQCNO_DEFAULTS C_options
C_options.Version = MQCNO_VERSION_2

MQCD_DEFAULTS CltPtr
CltPtr.ChannelName = "QCARW01.SVRCONN"
CltPtr.TransportType = MQXPT_TCP
CltPtr.ConnectionName = "CARS037.J68.MICHELIN.COM"
CltPtr.ChannelType = MQCHT_SVRCONN

C_options.ClientConnPtr = CltPtr

MQCONNX "", C_options, gHcon, CompCode, Reason

This code is not right because CltPtr and C_options.ClientConnPtr are incompatible.
What is the right code ?
Back to top
View user's profile Send private message
JasonE
PostPosted: Wed Nov 12, 2003 3:17 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

You cannot use clientconnptr, you need to use clientconnoffset. However at 5.3 (at least, not sure about earlier) use the MQCNOCD structure as this defined a CNO followed by a CD, and the MQCNOCD_DEFAULTS sets up the offset correctly. See the sample amqscnxb.frm.
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 » MQCONNX in VB6
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.