September 2, 2009

Running 32-bit Applications with 32-bit DLLs on 64-bit Operating Systems

The 32-bit DLLs run on the both 32-bit as well as 64-bit operating system or environment. But only the 32-bit mode application can load the 32-bit mode DLLs. By default a .NET application is configured to run on any CPU—the application (an executable file) can run on both 32-bit and

Execute DOS Commands from a Java Program

Rather unintuitively, you can’t run DOS commands directly by specifying Runtime.getRuntime().exec(dosCommand) in Java. Instead, to execute a DOS command (such as DIR, or RD) from a Java program, you need to prepend the command to run the Windows command shell cmd /c to the command you want to execute. The

Using the deployment Element’s retail Attribute

The deployment element in machine.config defines settings used to support deployment. The retail attribute can be set only at the machine level, not at the application level: You use it in machine.config as follows: The default value of the retail attribute is false. When you set the attribute to true,

Quick C# Project Documentation in Visual Studio

To quickly create XML documentation for your .NET classes during every build, open the project Properties, click the Build tab, scroll down to the Output section, and check the “XML Documentation File” property. Provide a file name to which Visual Studio should save the output, and then close the dialog.

How to Cycle Through the Visual Studio Clipboard Ring

Copying and pasting several sections of a file to another location is a common operation that usually ends up wasting a lot of time. But rather than copying each section individually from one location to another, you can use the Visual Studio Clipboard Ring instead. To do that, first copy