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 » Need Simple (even remedial) code help

Post new topic  Reply to topic
 Need Simple (even remedial) code help « View previous topic :: View next topic » 
Author Message
qaa_john
PostPosted: Thu Aug 26, 2004 5:22 am    Post subject: Need Simple (even remedial) code help Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Aug 26, 2004 5:28 am    Post subject: Reply with quote

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
View user's profile Send private message
qaa_john
PostPosted: Thu Aug 26, 2004 5:37 am    Post subject: Yes, but... Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Thu Aug 26, 2004 5:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Thu Aug 26, 2004 5:57 am    Post subject: Re: Yes, but... Reply with quote

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
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 » Need Simple (even remedial) code 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.