CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2002
    Location
    Oklahoma
    Posts
    231

    Pass Objects to Message Queue

    Does anyone know how to pass a serialized object to a message queue and then read it from the queue. I need to pass an object to the queue and then deseralize it.

    Hoagers34

  2. #2
    Join Date
    Mar 2005
    Location
    Chicago, IL
    Posts
    69

    Re: Pass Objects to Message Queue

    Use XmlSerializer to serialize ur object. Save the serialized xml string message to the queue.

    When you want to recreate your object, get the message from the queue and deserialize it.


    There has been an alarming increase in the number of things I know nothing about .

  3. #3
    Join Date
    Jan 2002
    Location
    Oklahoma
    Posts
    231

    Re: Pass Objects to Message Queue

    Thanks, I made it that far...I just did not know how to read the data. I found out that i need to use the BinaryFormatter to get the serialized data fromt he messagebody. Thanks.

    hoagers34

  4. #4
    Join Date
    Mar 2005
    Location
    Chicago, IL
    Posts
    69

    Re: Pass Objects to Message Queue

    Yeah it depends on how your are saving the serialized data...

    ne ways u know how to do it... good
    There has been an alarming increase in the number of things I know nothing about .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured