Content Preview: rss
31 days ago
static void Main(string[] args) { bool isAnotherInstanceRunning; Object obj = new System.Threading.Mutex(true, "YourNameHere", out isAnotherInstanceRunning); if (!isAnotherInstanceRunning) { Console.WriteLine("Another instance is already running."); } else { Console.WriteLine("Only this instance is already running."); GC.KeepAlive(obj); } Console.ReadLine(); } Explanation: A "mutex" (short for "mutual exclusion") is an operating-system object that can be used to keep processes from interfering with each other. Basically, the process that doesn't want to be interfered with will create a mutex, which the operating system will keep track of. Other processes will try to obtain the same mutex and will be blocked from executing if they do not do so. See ...
38 days ago
MAKs (MultipleActivation) allow a predetermined number of activations. This number depends on the type of agreement you have.The number of activations can be revised (at the request of the customer or by Microsoft) to accommodate your regular usage. On the other hand, One retail product key can only be activated for 10 times.
56 days ago
It means that the product key is actually built into the installer and you do not need a separate one to install it.
65 days ago
In RegEdit, you can take a look in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs to get the list of shared dlls. If application "A" installs a dll, then application "B" tries to install the same dll, instead of copying over it, Windows Installer (WI) will increment the reference count for that file.. When uninstalling app "A" (or "B"), WI will check the reference count to see if any other applications are still using that dll. If they are, then WI will decrement the counter by 1 and leave the dll behind. When that counter hits zero, the dll will be uninstalled by the next application that tries to remove it.
72 days ago
Two new features to C# 4.0 are optional parameters and named parameters. Optional parameters have been a part of VB.Net but it's now possible to do this in C#. Instead of using overload methods, you can do this in C#: private string Method1( string givenName, string surname = "Prakash" , int age = 23) { return givenName + " " + surname; } The second and third parameters, surname & age, both have default values. The only parameter required is givenName. To call this method you can either write this: string name = null ; name = Method1( "Ved" ); That will return Ved Prakash. You can also do this: string name = null ; name = Method1 ( "Prakash " , "Tejwani" ); The value returned is Prakash Tejwani . But what if you didn't want to specify a surname but you did want to pass the age? You can do this by using named parameters: string name = null ; name ...



