Archive for the ‘Programming’ Category

How to Fix Android CalledFromWrongThreadException

So you’re just cruising along writing the next big Android App dreaming of making it big and getting rich and then BAM! User after user is kicking you in the balls because that great Android application of yours just crashed and it’s complaining about a CalledFromWrongThreadException. Okay, so what happened and how to we fix [...]

September 19, 2011 · crow · No Comments
Tags: , , ,  Â· Posted in: Android, Java, Programming

What is game programming

What is game programming What is game programming? Well, I suppose game programming is a little bit of everything in the computer science world. Programming games is one part science, one part art, and one part fun (most of the time!). Programming games is much different than “normal” programming. Traditional business apps today are largely [...]

August 27, 2011 · crow · One Comment
Tags: ,  Â· Posted in: Game Programming, General

SDL & OpenGL Game with C++ – Part II

Parts in the Series Part I – Getting Started Part II – Drawing a Quad Rendering a Quad with OpenGL and SDL Ok, so if we are going to program a video game then we need to draw something with OpenGL. That being said, last time we left off with a basic framework for creating [...]

December 8, 2009 · crow · 3 Comments
Posted in: C/C++, Game Programming, Programming

SDL & OpenGL Game with C++ – Part I

Parts in the Series Part II – Drawing a Quad Getting Started I think I’ve spent too many late nights playing multiplayer Modern Warfare 2 and now I feel the need to build a small game of some kind. Game programming is fun, and although I’ve never done it professionally, I have dabbled with it [...]

November 23, 2009 · crow · 2 Comments
Posted in: C/C++, Game Programming

Runtime Scripting in .Net

The ability to ship source code with your product that can be compiled or interpreted at runtime is a very valuable asset. Video games do this all the time with things like AI allowing the end-user to easily mod the game. In compiled languages like C++, this technique is highly advantageous as it allows you [...]

September 30, 2009 · crow · 4 Comments
Posted in: C#

Using Ini Files In C#

An Initialization, or Ini file, is a common text based file format commonly used on the Windows platform. Today its mostly been succeeded in favor of XML files for application configuration and persisting user data. Never the less, these files still exist and are in use by many applications. In this post, we will explore [...]

July 16, 2009 · crow · 2 Comments
Posted in: C#

Accessing the System Task Bar in C#

In this post I’ll show you how to access the system taskbar and obtain information like its location, size, etc. You may find yourself needing to do something like this if you had a “popup” window for instance that is always supposed to “pop up” from the system tray. This is a common feature in [...]

May 10, 2009 · crow · 6 Comments
Posted in: C#, Programming

Launching and Viewing Processes in C#

You can launch a new process from a C# application by using the Process class located in the System.Diagnostics namespace. The Process class also allows you to obtain a collection of all running processes on the system. How to Launch a New Process Starting a process is really easy. Process.Start( "Notepad.exe" ); And that’s it. [...]

April 15, 2009 · crow · 3 Comments
Posted in: C#, Programming

How To Get Screen Shot Capture in C#

It’s often necessary to programmatically get a screen shot of the desktop and save it to a file. This is pretty easy with C#; we can create a simple method that will save an image of whatever is on the screen or desktop. Saving a Bitmap Image of the Screen First make sure you include [...]

April 13, 2009 · crow · 11 Comments
Posted in: C#, Programming

Introduction to Multithreading in C#

This article is a very basic introductory tutorial for using multiple threads in C#. I’ll explain what threads are, why you would want to use them, and how to use them. I’ll also show you several examples for creating threads, killing threads, etc. What’s a Thread? A computer program is generally very linear. That is, [...]

April 8, 2009 · crow · 2 Comments
Posted in: C#, Programming