The problem with VB is that you can't store pointers to functions and then
call them in the same way you can from C.

You could write a small DLL in C that provides the MQCONN etc. entry points
and then calls the actual entry points in mqm.dll or mqic.dll based on the
discussion below.

Regards
John Scott
IBM Certified Specialist - MQSeries
Argos Ltd


-----Original Message-----
From: Faizel Sedick [mailto:[EMAIL PROTECTED]
Sent: 16 October 2003 09:12
To: [EMAIL PROTECTED]
Subject: Re: A program the uses MQSeries Client and Server libraries


Can anyone tell me how to do this in VB.

Thanks

Faizel Sedick

Woolworths Integration
IBM MQSeries Certified Specialist, Developer & Solutions Expert
Email:  [EMAIL PROTECTED]
Phone:  +27 021 407 2452
Cell:           +27 083 251 9361
email:  [EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 30 September 2003 06:15 PM
To: [EMAIL PROTECTED]
Subject: Re: A program the uses MQSeries Client and Server libraries


I suggest, if you follow this technique, you load the Server Libs first,
since it is not unusual to install both libraries.






                      John Scott
                      <[EMAIL PROTECTED]        To:
[EMAIL PROTECTED]
                      .CO.UK>                  cc:
                      Sent by: MQSeries        Subject:  Re: A program the
uses MQSeries Client and Server libraries
                      List
                      <[EMAIL PROTECTED]
                      n.AC.AT>


                      09/30/2003 12:51
                      PM
                      Please respond to
                      MQSeries List






Yes it is possible to do this using the base MQI (MQCONN, MQOPEN, MQPUT
etc.). We do this on both NT, AIX and Solaris platforms.

You need to look at www.mqseries.net and do a search in the software
repository for either "ntloadmq", "sunloadmq" and "slloadmq" (for AIX).
These will give you ideas on how to dynamically load the MQ libraries.

Basically, the extension I did to this was to try and load the mqserver
library first. If that fails, drop down and look for mqclient. If that fails
it's game over.

Hope this helps.

John Scott
IBM Certified Specialist - MQSeries
Argos Ltd


-----Original Message-----
From: Jeff A Tressler [mailto:[EMAIL PROTECTED]
Sent: 30 September 2003 15:03
To: [EMAIL PROTECTED]
Subject: A program the uses MQSeries Client and Server libraries


We are writing a program that will be able to access either the MQSeries
client or MQSeries server depending on the system it runs on.

My understanding is that the code can be written such that no changes are
needed and the method of connection (Client or Server) depends upon which
set of MQSeries libraries the program links with. This would create two
different executable, one for a MQSeries Client system and another for a
MQSeries Server system

Is there a way to create a single executable which will recognize it is on a
MQSeries server and perform accordingly and if not, perform as if it were
running on a MQSeries client system?

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


**********************************************************************

Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be
privileged and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of
the originator. If you are not the intended addressee, any disclosure,
reproduction, distribution, dissemination or use of this communication is
not authorised. If you have received this message in error, please advise
the sender by using your reply facility in your e-mail software. All
messages sent and received by Argos Ltd are monitored for virus, high risk
file extensions, and inappropriate content. As a result users should be
aware that mail maybe accessed.

**********************************************************************

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive





This communication is for informational purposes only.  It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market
prices, data and other information are not warranted as to completeness or
accuracy and are subject to change without notice. Any comments or
statements made herein do not necessarily reflect those of J.P. Morgan Chase
& Co., its subsidiaries and affiliates.

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
----------------------------------------------------------------------------
----
Please note: This e-mail and its contents are subject to a disclaimer
which can be viewed at http://www.woolworths.co.za/disclaimer. Should you be
unable to access the link please e-mail [EMAIL PROTECTED]
and a copy of the disclaimer will be e-mailed to you.

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


***********************************************************************************

Click here to visit the Argos home page http://www.argos.co.uk

The information contained in this message or any of its attachments may be privileged 
and confidential, and is intended exclusively for the addressee.
The views expressed may not be official policy, but the personal views of the 
originator.
If you are not the addressee, any disclosure, reproduction, dissemination or use of 
this communication is not authorised.
If you have received this message in error, please advise the sender by using the 
reply facility in your e-mail software.
All messages sent and received by Argos Ltd are monitored for virus, high risk file 
extensions, and inappropriate content.  As a result users should be aware that mail 
maybe accessed.

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to