Category: Software
-
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? or this one? The SQL engine doesn’t care for the whitespace you introduce in queries with verbatim strings. So do your fellow programmers a favor and use them…
-
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 Game Screenshot Editor Screenshot Installing Java To execute the game,…
-
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…
-
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”…