|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can a single VB 6 DLL connect to either MQ Client or server? |
« View previous topic :: View next topic » |
Author |
Message
|
jings |
Posted: Thu Apr 26, 2012 10:50 pm Post subject: Can a single VB 6 DLL connect to either MQ Client or server? |
|
|
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 |
|
 |
mqjeff |
Posted: Fri Apr 27, 2012 3:33 am Post subject: |
|
|
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 |
|
 |
gbaddeley |
Posted: Sun Apr 29, 2012 6:14 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 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 |
|
 |
|
|
 |
|
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
|
|
|
|