When i use the sample which comes with MQ 5.1 in cplus directory samples , i complile it on windows NT and some how it does not work. It gives me reason code 2059 , but when i use the executable which also comes with in the bin directory for the same source code from ibm it seems to work. I really dont knwo why this is happening. Can anybody help me!!