Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using MQCONNX in VB

Status
Not open for further replies.

Girisht

Programmer
Aug 2, 2001
5
US
Hi,
To use MQCONNX one has to provide an MQCD structure which contains the information about the channel to be used for connection. Futher a pointer or offset to this structure is to be provided in MQCNO structure. As one can not use pointers in VB, I created a super structure have both MQCNO and MQCD structure in it so that a continuous memory area is allocated for these two and then I assinged an offset equal to the length of MQCNO structure to the offset field in the MQCNO. But its not working ??? Ane Help ???

Thanks
 
I would also like to know how to set the structure
cox I couldn't figure that out as well
could anyone give me some code ?
 
yes I've got it !!! :-D
i'm trying to join a mQSeries server since 2 days.
i'm just achieve it.

Look for the code below, i hope it will help you.

-----------------------------------------------------------

Dim oConnOpt As MQCNOCD

MQCNOCD_DEFAULTS oConnOpt

oConnOpt.ChannelDef.ChannelName = "SYSTEM.DEF.SVRCONN"
oConnOpt.ChannelDef.ConnectionName = "server_name"

MQCONNXAny "", oConnOpt, gHcon, CompCode, Reason

-----------------------------------------------------------

Sorry for my english, i'm french.

best regards,
marc

you can join me : mpasteur@ifrance.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top