Click here to Skip to main content
16,012,173 members

Comments by Member 10102675 (Top 3 by date)

Member 10102675 17-Mar-14 2:45am View    
Actually I need to access certain members of exe in dll. I have heard about Reflection but I have never used it. So thought will be there any other techniques to deal this issue.
I am not used to Assemblies or Reflection. I am learning now.
Member 10102675 17-Mar-14 2:36am View    
Thank you, I am a beginner .
I shall do it.
Member 10102675 26-Sep-13 6:58am View    
Hmmm even that is not working. Actually I have modified my code as below :
[WebMethod]
public string DisplayMessage()
{
bool NoMessage = true;
MessageQueue Q1 = new MessageQueue(QueueName);
Q1.Formatter = new XmlMessageFormatter(new Type[] { typeof(string) });
StringBuilder res = new StringBuilder();
System.Messaging.Message[] AllMessages = Q1.GetAllMessages();
foreach (System.Messaging.Message theMessage in AllMessages)
{
NoMessage = false;
res = res.Append(theMessage.Body.ToString());
return res.ToString();
turn strMessage.ToString();
}

if (NoMessage)
{
return "Empty Queue";
}
return "Success";
}


}
But the problem here is only one value is returned. that is only the last content of the queue is getting displayed.