CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    36

    MSMQ - 'using System.Messaging' dont exist?

    I started a simple C# console to test MSMQ stuff, following MSDN example I start by includding

    using System;
    using System.Messaging;

    I get the error 'Messaging does not exist in System namespace'

    But it is documented and everything. What am I missing?

    thanks,

    GG

  2. #2
    Join Date
    Oct 2001
    Location
    Norway
    Posts
    265
    You have to reference the System.Messaging.dll. From VS.NET, right click on References, and find System.Messaging.dll in the list. On the commandline:
    Code:
    csc /r:System.Messaging.dll MyFile.cs

  3. #3
    Join Date
    May 2002
    Posts
    36
    Thank you for your clear answer. I figured it out searching around.

    I have another MSMQ question do,

    I use "BeginReceive" for Asynch messages, but how can I stop the process between messages.

    The "EndReceive" member takes a parameter for completion of a received message, but what if I wish to "pause" for a few minutes the message reception; do I have to wait for a message to come in?

    It does not make sense, and "EndReceive" will throw an exception if I pass a bad (empty) argument.

    Thanks,

    CS

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