|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Need Simple (even remedial) code help |
« View previous topic :: View next topic » |
Author |
Message
|
qaa_john |
Posted: Thu Aug 26, 2004 5:22 am Post subject: Need Simple (even remedial) code help |
|
|
Newbie
Joined: 26 Aug 2004 Posts: 2
|
Trying to build an automated quality assurance solution (well a component).
I built a simple DLL in VB.NET to Connect/Put/Get a message. Unfortunately when I tried to call my functions in IBM/Rational Robot it couldn't load the dll. Research confirmed that Robot doesn't handle .Net dlls.
I'm looking for VETERAN coders that can give me an example in MQIC32 equivalent to MQEnvironment .Hostname, .Channel, .Port.
If this is better in C or C++ that's fine too. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 26, 2004 5:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There are some sample VB programs that use MQAX (not the .Net version) installed in the Tools/mqax/samples/vb folder under your MQ Install root. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
qaa_john |
Posted: Thu Aug 26, 2004 5:37 am Post subject: Yes, but... |
|
|
Newbie
Joined: 26 Aug 2004 Posts: 2
|
The ActiveX examples do not define channel or port.
I tried the CreateObject("MQAX200.MQSession",[servername])
However the result is the same. I get a 2058 or 2059 where the QMgr is not instanced. |
|
Back to top |
|
 |
bower5932 |
Posted: Thu Aug 26, 2004 5:54 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Try looking at the amqscnxc.c sample. It uses the MQCONNX call to establish a client connection. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 26, 2004 5:57 am Post subject: Re: Yes, but... |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
qaa_john wrote: |
The ActiveX examples do not define channel or port.
I tried the CreateObject("MQAX200.MQSession",[servername])
However the result is the same. I get a 2058 or 2059 where the QMgr is not instanced. |
That's right, I'm sorry.
You'd need either an MQServer environment variable or a client connection table. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|