16,012,173 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.