Visual Basic samples for IBM MQ for Windows

Table 1 shows the techniques demonstrated by the IBM® MQ for Windows sample programs.

A project can contain several files. When you open a project within Visual Basic, the other files are loaded automatically. No executable programs are provided.

All the sample projects, except mqtrivc.vbp, are set up to work with the IBM MQ server. To find out how to change the sample projects to work with the IBM MQ clients see Preparing Visual Basic programs in Windows.

Table 1. IBM MQ for Windows sample programs demonstrating use of the MQI (Visual Basic)
Technique Project file name
Putting messages using the MQPUT call amqsputb.vbp
Getting messages using the MQGET call amqsgetb.vbp
Browsing a queue using the MQGET call amqsbcgb.vbp
Simple MQGET and MQPUT sample (client) mqtrivc.vbp
Simple MQGET and MQPUT sample (server) mqtrivs.vbp
Putting and getting strings and user-defined structures using MQPUT and MQGET strings.vbp
Using PCF structures to start and stop a channel pcfsamp.vbp
Creating a queue using the MQAI amqsaicq.vbp
Listing a queue manager's queues using the MQAI amqsailq.vbp
Monitoring events using the MQAI amqsaiem.vbp