Sending messages on queue present on remote machine

C#

    Next

  • 1. Listview column width
    I want my listview (with only one column in it) to display this column in the entire width of the listview. I haven't found any property to do it. Any suggestions? Thanks Alex B.
  • 2. MP3 woes
    Hi, I posted about this a few days ago but to no avail, so here goes again. I am playing both mp3 and wav files using;- QuartzTypeLib.FilgraphManager graphManager = new QuartzTypeLib.FilgraphManager(); QuartzTypeLib.IMediaControl mc = (QuartzTypeLib.IMediaControl)graphManager; mc.RenderFile(fileName); mc.Run(); Its triggered by a user clicking a play button, which then gets renamed to a stop button! if they click stop, then the button returns to a play button. the thing is how do i detect that a particular wav or mp3 has finished so i can return the stop button to the play state? I have been looking at this for days and cannot figure out how to detect the sound finishing! thanks in advance
  • 3. VB.Net to C#. The problem of Delegate
    Dear all: I want to use a software API functions on my project,but it was written VB.NET. I am using C#, So how to write these code by C#, espacially Delegate. I tried several times, but I failed. The below is the part code by VB.NET ------------------------------------------------------------------------------------------------ Sub DoOCR(ByRef FileName As String) Dim cbFunc As SimpleOCX.outputHandlerDelegate Dim ret As Interger cbFunc = AddressOf myoutputhandler ret = objOCR.OCRSetOutputHandlerX(cbFunc) Exit Sub Sub myoutputhandler(ByVal infotype As Short, ByVal param As Short) End Sub ------------------------------------------------------------------------------------------------ Please give me some tip to do this process, I will appreciate your kindness. Thanks.
  • 4. Saving a File - a question
    Why don't you just ZIP the saved file?
  • 5. How to read forms components?
    Hi, Can i enumarate the windows form's components? I want to list components on the screen. Thanks... (Note: I am using vs2005)

Sending messages on queue present on remote machine

Postby UmVzaG1h » Tue, 09 Nov 2004 21:08:02 GMT

Hello,

      How to send messages to a queue preent on remote machine. I have given 
all the rights to the user. Still the user is able to create a queue through 
program but is not able to send messages to it.
        Is any special rights need to be given.

Thanks,

Similar Threads:

1.create public message queue at remote machine

I have to create message queue at remote machin. My code works properly when 
i use console application in c#. But it throws exception whenever i try it on 
web application in c#. My code is 


MessageQueue.Create("FormatName:DIRECT=OS:MachineName\\QueueName");

or 

MessageQueue.Create("MachineName\\QueueName");




-- 
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx

2.Can not send message to remote transaction queue.

I can not send message to remote transaction queue. I create a transaction
queue, and it can receive the transaction message that been send from other
device(PC). And I can send message to remote queue(No transaction).
Bellow is my code:
HRESULT hr = MQ_OK;
QUEUEHANDLE hQueueForSend;
hr = MQOpenQueue(L"DIRECT=OS:cs\\PRIVATE$\\XKPTQueue;XACTONLY",
                                     MQ_SEND_ACCESS,
                                     MQ_DENY_NONE,
                                     &hQueueForSend);

MQMSGPROPS MsgProps;
PROPVARIANT aMVariant[10];
MSGPROPID aMPropId[10];
DWORD MPropIdCount = 0;

// Set the body of the message (PROPID_M_BODY).
aMPropId[MPropIdCount] = PROPID_M_BODY;			// Property identifier
aMVariant[MPropIdCount].vt = VT_VECTOR|VT_UI1;		// Type indicator
aMVariant[MPropIdCount].caub.pElems = (UCHAR *)L"So sad for this week.";
aMVariant[MPropIdCount].caub.cElems = ::SysStringByteLen(lpwMessageBody);
MPropIdCount++;

 // Set the PROPID_M_BODY_TYPE property.
aMPropId[MPropIdCount] = PROPID_M_BODY_TYPE;
aMVariant[MPropIdCount].vt = VT_UI4;
aMVariant[MPropIdCount].ulVal = VT_BSTR;
MPropIdCount++;

// Set the label of the queue (PROPID_Q_LABEL).
aMPropId[MPropIdCount] = PROPID_M_LABEL;	// Property identifier
aMVariant[MPropIdCount].vt = VT_LPWSTR;		// Type indicator
aMVariant[MPropIdCount].pwszVal = L"Message 1";	// Queue label
MPropIdCount++;

// Set the MQMSGPROPS structure
MsgProps.cProp = MPropIdCount;			// Number of properties
MsgProps.aPropID = aMPropId;			// Ids of properties
MsgProps.aPropVar = aMVariant;			// Values of properties
MsgProps.aStatus  = NULL;			// No Error report

// Send message
hr = MQSendMessage(hQueue,			// handle to the Queue.
		&MsgProps,		// Message properties to be sent.
		MQ_SINGLE_MESSAGE);	// transaction
When I call MQOpenQueue(), hr return 0x00000000, but can not get theHANDLE
hQueueForSend, so when call the MQSendMessage, hr return
MQ_ERROR_INVALID_HANDLE. When the format name is L"DIRECT=OS:cs\\PRIVATE$\\
XKPTQueue;;XACTONLY"(addtional ;), I can get the MQHANDLE, but when I call
the MQSendMessage, hr return error :MQ_ERROR_TRANSACTION_USAGE. Is there
additional register configuing? I configue the register with Visadm, 1.
Select Install from the Shortcuts menu, and then select Registers from the
Shortcuts menu. And enable binary , enable srmp. 2. Reboot the computer. I
use WinCE 4.2

3.using Dlls present in remote machine

I need to import dlls that are present in the remote machine. Its a dll 
written in C that exposes methods. I want to import that dll in my C# 
application. But that dll is not present in the local machine. Its not a 
webservice. I need something like remote method invocation(but dlls).

4.how to create queue at remote machine?

-- 
bfgbcbcxvbcxbcxvbcxbxcbxcbcfdsgsdgfsdgx

5.how to create msmq queue at remote machine?

how to create msmq queue at remote machine? n how to send messege to remote 
queue?
-- 
deepak

6. Authenticate a user in the remote machine(User is local to the remote machine)

7. Sending emails to remote machines via ASP.net

8. Get error messages back from a Remote machine



Return to C#

 

Who is online

Users browsing this forum: No registered users and 54 guest