If you have MQ installed, the samples for C++ would be here
Win:C:\Program Files\IBM\WebSphere MQ\Tools\cplus\Samples
AIX: /usr/mqm/samp/
Linux:/opt/mqm/samp
When we dequeue a message with MQRFH2 headers, we have to update some
fields and copy the header back into replies. I looked at Using C++
guide and ...