The header files define various macro variables that you can use to provide initial values for the MQ structures when you declare instances of those structures. These macro variables have names of the form MQxxx_DEFAULT, where MQxxx represents the name of the structure. They are used in the following way:
MQMD MyMsgDesc = {MQMD_DEFAULT}; MQPMO MyPutOpts = {MQPMO_DEFAULT};
For some character fields (for example, the StrucId fields that occur in most structures, or the Format field that occurs in MQMD), the MQI defines particular values that are valid. For each of the valid values, two macro variables are provided:
#define MQFMT_STRING "MQSTR "Use this form with the memcpy and memcmp functions.
#define MQFMT_STRING_ARRAY 'M','Q','S','T','R',' ',' ',' 'Use this form to initialize the field when you declare an instance of the structure with values different from those provided by the MQMD_DEFAULT macro variable. (This is not always necessary; in some environments you can use the string form of the value in both situations. However, the array form is recommended for declarations, because this is required for compatibility with the C++ programming language.)
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqzak1030 |