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 » Looking for VB code using MQCONNX MQCNO MQCD - Please help

Post new topic  Reply to topic
 Looking for VB code using MQCONNX MQCNO MQCD - Please help « View previous topic :: View next topic » 
Author Message
FrankB
PostPosted: Fri Apr 19, 2002 6:51 am    Post subject: Reply with quote

Newbie

Joined: 18 Apr 2002
Posts: 1

I'm writing a VB6 program, based on the amqput VB5 sample, which should be
able to connect to different MQ servers dynamically. To achieve this, I'm
using the MQCONNX call with the MQCNO and MQCD structures.
For some reason I can't seem to get it working. According to the manuals,
the MQCNO udt has a ClientConnPtr variable which must points to the MQCD
structure. To achieve this I've tried several methods, all of which failed.
Varptr(cd), StrPtr(cd.ChannelName), CopyMemory call etc. I've also tried to
combine both udt's to one single udt and setting the ClientConnOffset,
which also didn't work. And finally I changed the MQCNO udt so it had an
additional variable of the MQCD type. I think the last method is the way to
go, but again no luck. The C sample pogram amqscxcn, which is similar to
what I'm trying to achieve, works like a charm. Alas, my client won't accept
any programs written in C.

So, what I'm looking for is a VB code snippet which shows the correct way
to dynamically connect to an MQ server.
Please include any modified udts and api calls.

Thank you very much for the assistence,

Frank


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 » Looking for VB code using MQCONNX MQCNO MQCD - Please help
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.