The ‘C programming’ Archives
Posted February 18, 2016 by

Create a Folder Using CMD in Windows

Create a Folder Using CMD Using WINDOWS PC

Not many Windows users are familiar with CMD. The common misconception is that only programmers and computer geeks use CMD. Basically, CMD is a tool that you can use to communicate with your Windows computer. Though the user interface and other input methods are introduced, CMD is one tool that you cannot take for granted. […]

Posted November 30, 2012 by

Automatically Focusing on an Object When a Windows Phone App Is Loaded


For example, when developing an app that asks for a password before users can actually use it, developers should set focus on the password box and display the keyboard automatically. This is a good user interface practice to prompt users which step is next. The Visual Studio steps required to do this are documented below.

Category C programming

Posted November 29, 2012 by

Change the Default XAML Page in a Windows Phone App


When creating a Windows phone application, Visual Studio defaults the initial page to MainPage.xaml. However, in many cases, developers need to customize the first loaded page to a different file instead.

Category C programming

Posted November 2, 2011 by

Two Common Mistakes in Floating Point Arithmetic in C

This tutorial will demonstrate two rules that must be respected when performing floating point arithmetic in C. Following these rules will prevent loss of information. Examples with walk through explanation provided.

Category C programming

Posted January 30, 2010 by

Cocoa: Convert number to comma-separated NSString

At some point in your Mac, iPhone, or iPad development you may find the need to express a long number (1000000000) as a comma-separated string (1,000,000,000) to make life easier on your users. The NSNumberFormatter class is a rich tool for converting numbers to strings supporting different types of currencies and localizations. It’s also the […]

Category C programming

Posted December 27, 2006 by

Get Web Page Contents in Code with C#

When you are developing an application that needs to access data stored on a web server, you can easily get the contents of a web page with this simple C# function.

Category C programming

Posted December 22, 2006 by

Pause Output From a Command Line Application in .NET Debug Mode

If you are writing a command line application in .NET, you might notice that the application closes immediately if you haven’t set a breakpoint. This recipe shows you the one line method to keep the application open so you can see the output.

Category C programming

Posted December 20, 2006 by

Make System Tray Based Application in .NET

Creating an application that lives in the system tray is easy, but it is not entirely obvious how to do so in Visual Studio. This recipe will show you the steps.

Category C programming

Posted December 11, 2006 by

Open a URL in the Default Browser in Your .NET Application

Virtually every application these days requires at least some connection to the internet. Letting the user click a link and open it in their browser is essential. This recipe shows you the 1 line method of doing so.

Category C programming

Posted December 9, 2006 by

Pass Variables to a New Thread in C#

When you create a new thread in .net 1.1, you cannot pass any parameters to the ThreadStart delegate, which makes passing startup variables difficult. This recipe shows you an easy workaround.

Category C programming

Posted December 9, 2006 by

Load an Icon from an Embedded Resource in .NET

When you are developing a Windows Forms application in .NET, it’s not immediately obvious how to programatically load an icon file embedded in your executable. This recipe shows you the 1 line solution.

Category C programming

Posted June 25, 2006 by

C/C++ Doubly Linked List

This tutorial demonstrates the implementation of a doubly linked list and the removal of the prev pointer for a singly linked list.

Category C programming