Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unsignedchar messages in MQ 1

Status
Not open for further replies.

galatasarayer

Programmer
Feb 11, 2005
3
TR
I use C++ and I am trying to get messages of "unsigned char" form MQ. However all the examples I got use string format and the useemptybuffer function which takes "const char" as first parameter.
how can I put and get a message of "unsigned char" to MQ?
 

A good standard for MQ is using string for all your messages. Put your message in as a string and pull it out as a string. Convert then put it in. Take it out and convert it to what you want.

It's an important strategy for cross platform comliance. Sure maybe you don't need that today. Someday you might be doing that. So do it the most platform independent way you can. It is important when you have "codepage" to worry about.

To be honest even if I knew how to work with "unsigned char" I wouldn't lead you down that path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top