|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Looking for VB code using MQCONNX MQCNO MQCD - Please help |
« View previous topic :: View next topic » |
Author |
Message
|
FrankB |
Posted: Fri Apr 19, 2002 6:51 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|