C#: Use verbatim strings for SQL queries

Using verbatim strings for SQL queries can make your code much more readable. For example, which one of the following queries is easier to read? This one? string query = @” SELECT User.FirstName, User.LastName, User.Age, User.Gender, User.HairColor, Adress.Street, Adresse.Zip, Adress.City, Adress.Country FROM User INNER JOIN Adress ON User.AdressId = Adress.Id SORT BY User.FirstName, User.LastName “; … Read moreC#: Use verbatim strings for SQL queries

Java Swing Game Programming – Pacman Clone

This project is a Pacman clone written in Java and using Swing and Java2D for the UI. I began this project in autumn 2003 after working for several years as a software engineer and having never written a game. v 0.63 (16 june 2007) Enhancements History displayed in about window Level editor implemented Tunnels improved … Read moreJava Swing Game Programming – Pacman Clone

Using ctypes to call additional win32 functions

Introduction The Windows extensions for Python offer a lot of the Win32 api to the Python developer but there will always be cases where a certain functions will not be available, as the Win32 api is very large. But in that case, the developer needs not to despair, because the ctypes extensions allows to import … Read moreUsing ctypes to call additional win32 functions

Hello World in Python using Win32

Introduction Python is a cool scripting language available on many platforms and has an extensive standard library. Additionally, under Windows there are extensions available that allow Python to interface with the Win32 API or to call COM objects. You can even write COM servers in Python! I had a copy of Charles Petzold’s “Programming Windows” … Read moreHello World in Python using Win32