#include <hmq.h> #include <hmqHelper.h> MQEINT32 MQeFieldsPutBoolean( MQEHSESS hSess, MQEHFIELDS hFlds, MQECHAR * pName, MQEBYTE aBool, MQEINT32 * pCompCode, MQEINT32 * pReason)
#include <hmq.h> #include <hmqHelper.h> static MQECHAR const * FieldsType = "com.ibm.mqe.MQeFields"; static const MQECHAR * textVal = "The Owl and the Pussy Cat went to sea"; MQEHSESS hSess; MQEINT32 compcode; MQEINT32 reason; MQEHFIELDS hFlds; MQBOOL aBool; MQEBYTE * pData; MQEINT32 rc; hSess = MQeInitialize("MyAppsName", &compcode, &reason); hFlds = MQeFieldsAlloc( hSess, FieldsType, &compcode, &reason); aBool = 1; MQeFieldsPutBoolean( hSess, hFlds, "ibm", aBool, &compcode, &reason);