Results 1 to 4 of 4

Thread: Microsoft Message Queuing

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    7

    Microsoft Message Queuing

    Hi,

    I need some help starting out developing an application that uses message queuing. I am using VB6 and Win2K. Could someone pls point me to some docs and samples on how to implement queuing in my app.

    Many thanks,
    Jarrod

  2. #2

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    7
    Thanks srins,

    I had a basic understanding of queues. What I need are some samples on how to actualy programaticaly access a queue from VB and send a message. I have been searching msdn and for some reason have only come up with one article.

    Thanks for the info though.

    Regards,
    Jarrod

  3. #3
    jim mcnamara
    Guest
    I'm not sure about what messages you mean-

    NT & 2000 use can message queues like this -

    http://www.sysinternals.com/ntw2k/info/dpc.shtml

    but all windows OS's send messages to the WndProc of a window (form, control, whatever) via: SendMessage api, PostMessage api. These also use a message queue, PostMessage sends to the tail of the queue, SendMessage to the front of the queue.

    sysinternals also has software that intercepts messages. Take a look at their site.

    Since your request is a bit vague, try working with this stuff, then ask some more.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jul 2001
    Posts
    7

    I think I solved my problem

    Thank for the responses. They where both helpfull. Making me think about the problem as well as linking to a site I had never heard of.

    But I am simply using this snippet of code to perform my task:

    Code:
       queueInfo.PathName = "mybox\private$\thequeue"
       Set myQueue = queueInfo.Open(MQ_SEND_ACCESS, MQ_DENY_NONE)
       
       With myMessage
          .Label = "Test"
          .Body = myObject
          .Send myQueue
       End With
    Is it as simple as that? Or is there more to it?

    Regards,
    Jarrod

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