I got a question on the sample code from IBM. I created 2 vs projects: 1 for nmqsput.cs and 1 for imqsget.cpp. I tried to send a message from the C# program and receive it from the C++ program. Say the message is "hello". After calling queue.get( msg, gmo ), the buffer contains a char array like this: ['h', 0, 'e', 0, 'l', 0, 'l', 0, 'o', 0...]. Seems it is a message encoding issue, but I could not find any solution for it. Any suggestions are appreciated very much.
(corrected the title of this post)