请问如何将从消息队列的数据流中取出所需要的值类型数据,c#

bcxs 2003-08-06 09:21:17
请问:
我要接受别人用vc6.0写入消息队列的字符串数组,
从中解出各种数据,
但是没有指针操作,
在c#中如何做
谢谢
...全文
127 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
inethax 2003-12-29
  • 打赏
  • 举报
回复
up
inethax 2003-12-13
  • 打赏
  • 举报
回复
up
jennyq_zq 2003-08-07
  • 打赏
  • 举报
回复
You probably need to use BinaryMessageFormatter(set queue's formatter or msg's formatter) to deserialize the byte[]. Then you can use operate on the byte[](msg.body) or BinaryReader to read the msg.bodystream to get any data you want.
bcxs 2003-08-07
  • 打赏
  • 举报
回复
先谢了,请继续指点

雪狼的代码只是用道了label,可是我是想从message.body中得到我的原始数据,

maybe you are wrong,
because there are some names in the byte[] when i use BinaryMessageFormatter,
but in my byte[],there are only data,
雪狼1234567 2003-08-06
  • 打赏
  • 举报
回复
参见如下的代码:
http://www.c-sharpcorner.com/2/MessageQueueTut1.asp

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧