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 » Can a single VB 6 DLL connect to either MQ Client or server?

Post new topic  Reply to topic
 Can a single VB 6 DLL connect to either MQ Client or server? « View previous topic :: View next topic » 
Author Message
jings
PostPosted: Thu Apr 26, 2012 10:50 pm    Post subject: Can a single VB 6 DLL connect to either MQ Client or server? Reply with quote

Newbie

Joined: 26 Apr 2012
Posts: 4

Hi,
I am having a VB 6 application. As per the project requirement, the same VB 6 code should be able to connect to Queue Manager using MQ Client or MQ Server dll.

Currently I have made the settings using the Conditional Compilation Argument mqType value. But this change would require the DLLs to be modified everytime. I have VB 6 code which can connect to either local or remote queue manager.

Is there any possible solution where I can configure the mq related settings in some configuration file, such that the same VB 6 DLL can be used without requiring modification to the mqType.

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Apr 27, 2012 3:33 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could do this with a similar level of Visual C++.

In order to make it work in Visual Basic, you're going to have to find some way to delay loading the MQ libraries until you've decided which set you want to load.

You should be talking to your customer or employer about the fact that they are asking you to maintain a solution written on an incredibly obsolete code platform, and that your time is more valuable to them spent bringing it up to date rather than merely bandaging it.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Sun Apr 29, 2012 6:14 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

You could create your own customised version of cmqc.bas to define different function names for each type of interface, eg. MQCONNs for server, MQCONNc for client. This will load the appropriate DLL when each function is called. This hack is probably not supported by IBM....
_________________
Glenn
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 » Can a single VB 6 DLL connect to either MQ Client or server?
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.