Preparing and running sample programs on Windows systems

Table 1. Where to find the samples for WebSphere MQ for Windows
Content Directory
C source code MQ_INSTALLATION_PATH\Tools\C\Samples
Source code for dead-letter handler sample MQ_INSTALLATION_PATH\Tools\C\Samples\DLQ
COBOL source code MQ_INSTALLATION_PATH\Tools\Cobol\Samples
C executable files 1 MQ_INSTALLATION_PATH\ Tools\C\Samples\Bin (32-bit versions) MQ_INSTALLATION_PATH\ Tools\C\Samples\Bin64 (64-bit versions)
Sample MQSC files MQ_INSTALLATION_PATH\Tools\MQSC\Samples
Visual Basic source code MQ_INSTALLATION_PATH\Tools\VB\SampVB6
.NET samples MQ_INSTALLATION_PATH\Tools\dotnet\Samples

MQ_INSTALLATION_PATH represents the high-level directory in which WebSphere MQ is installed.

Note:
  1. 64-bit versions are available of some C executable file samples.

The WebSphere® MQ for Windows sample files are in the directories listed in Table 1 if the defaults were used at installation time; the installation drive defaults to <c:>. To run the samples, either use the executable versions supplied or compile the source versions as you would any other WebSphere MQ for Windows applications. For information on how to do this, see Running the sample programs.