Possible Duplicate:
Type.GetFields() - only returning public const fields
I have a class which looks like as follows:
public class MyConstants
{
public const int ONE = 1;
public const int TWO = 2;
Type thisObject;
public MyConstants()
{
thisObject = this.GetType();
}
public void EnumerateCo...
I have to port a VB 6.0 app to VB.Net (Framework 3.5). The application uses MSMQ heavily. I'm trying to figure out what are the advantages of using WCF over good ole System.Messaging. Are there any potential showstoppers when going with System.Messaging?
...
In the past I had the need to clone objects, only to find that they don't implement a Clone() method, forcing me to do it by hand (create a new instance and copy all properties from the original to the new one)
Why isn't cloning as easy as duplicating the memory block the object is allocated in, and thus have the Clone method in the obj...
I need to simulate multiple embedded server devices that are typically used for motor control. In real life, there can be multiple servers on the network and our desktop software acts as a client to all the motor servers simultaneously. We have a half-dozen of these motor control servers on hand for basic testing, but it's getting expe...
What does the /= operator in C# do and when is it used?
...
Hello,
how could I send an application (think WM_ messages?) which is not my application (think: any 3rd party app) to a different screen on a multiscreen system? Is there a specific windows message code I can send to the window or process handle to do this?
...
I have 2 apps that I want to make communicate via named pipes on .NET 3.5. Its a request/response paradigm, with the data transmitted as XML to make my life easier. There is a listener app, and an app that posts requests to the pipe. I'm trying to use a bidirectional pipe to do this. The problem i have is that the call to StreamReade...
I am using the version 1.0 release of Linq for nHibernate. When I run
the following linq statements I receive the error
not a single-length projection: Surname
I can find very few references to this on the web and looking into the
source it says it should never occur! ClientID is a Int type and
Surname is a string. When I comment out a...
Members of the Path class like Path.Combine are indispensable. They lead to great, clean, correct code. Unfortunately, if you use it for something like managing header paths in a C++ preprocessor, you'll quickly realize that it's showing up more than expected in the profiler. Why?
Exceptions: ArgumentException: path1 or path2 contain...
I'm working on a product that creates MS Word output by generating an HTML document with the appropriate bits of Word CSS and XML magic embedded in it. I now need to embed RTF (images and styled text) in the document, and so am looking at the multipart HTML generation features in .NET.
I'd like to generate the MHTML document by converti...
Hi guys
I have the following code:
public virtual void Initialise()
{
this.AddHeader("SystemContext", this.UserSettings.SystemContext);
}
public virtual void AddHeader(string key, object value)
{
var customHeader = MessageHeader.CreateHeader(key, this.SystemSettings.SystemServiceNamespace, value);
OperationContext.Current...
So here I am, first time windows developer (done java swing, iphone, flash/flex) and I'm confused by what technology Microsoft wants me to use for in browser rich applications. The application I'm designing is a file uploader that supports drag and drop from the filesystem, seems easy, I already implemented this already in Java and I fi...
In WCF services and a variety of other .NET apps, I understand that app.config is used to specify settings.
Is this file only used at compile time and settings get stored in the assembly or is it required at run time as well?
Does it vary per project type?
...
My main goal is to change the volume on one sound card based on the decibel level of the audio on another sound card (both on the same computer). Is it possible to detect the DB level?
PS: I am writing this in C#
...
What are the best resources for understanding what's possible (or not possible) to achieve using web.config settings.
Wikipedia is really short on answers at this time and many of the sites I've browsed to only have one or two configurations referenced and explained.
...
I have implemented a windows service application that will be deployed to multiple machines and run concurrently to process tasks in a central queue. I have a log file for each instance of service running. But I want to be able to monitor all instances of the service and retrieve application specific information, such as Name and ID of t...
How do i get an System.Drawing.Image for the various System.Windows.MessageBoxImage(s) and/or
System.Windows.Forms.MessageBoxIcon(s)
...
Hi,
I've working on something at the moment and we've created a pdf output using FOP which is working fine. Now however the printhouse wants to have bleeds all around the pdf.
Is it possible to resize the existing pdf and add the bleeds in a non destructive manner programmatically via a .net or java api (preferrably .net)? Although FOP...
We have a set of assemblies which implement web services operations.
To build the client proxies, we first build and deploy the web services (assemblies and ASMX files) on the server.
Then we use wsdl.exe to point to the ASMX endpoints and generate the classes for the client proxies.
I've seen that it is possible to create the proxies...
A browser base application which intends to show data in English and capture data in English need to have a UTF-8 database?
Is there any problem if the site is accessed on a Japanese language Operating System? If user types only in English do we need to take any extra care? If user types in Japanese then how system can detect and throw ...