Source Code Examples

Jeff Heaton's Programming Examples

These are free source code examples that I have created over the years. All are available on a LGPL license. So feel free to use them in your own programs.

Download

Date Added

Description Language
snapBMP.zip 1/14/1999 Capture the screen in any mode and save as a .bmp. WIN32 C
error.c 1/14/1999 Associate text with Windows numeric error codes. WIN32 C
sbitmap.c 1/14/1999 Write bitmap handles as bitmap files. WIN32 C
CreateLink.c 2/18/1999 Create a Windows shortcut from C/C++ WIN32 C
AddZeros.c 1/22/1999 Function to add leading zeros to any length string in C. C
Logging with JDK1.4 1/3/2001 This example shows how to use the logging features of JDK1.4. This is a
very basic example.
Java
neural.zip 5/11/2002 Neural network OCR program in Java. Java
javabin.zip 5/11/2002 Reading binary files in Java. Handles little-endian/big-endian and other formats. Java
/static/source/aim.zip 6/7/2002 Interfaceing to AIM with Java Java
http.zip 5/11/2002 Do HTTP posts and gets WIN32 C++
systray.zip 5/11/2002 Dynamic systrays. Dynamically create system tray icons. WIN32 C
sk8dudesrc.zip 1/12/2003 Source code to my "SkaterDude" game. A simple sprite based game or WIN32. WIN32 C
linkcheck.zip 1/25/2003 Source code to a spider that will check all of the links on a web site. Makes a good starting point for creating other spiders. Java
csspider.zip 7/21/2003 Source code to a spider that will download an entire site. Makes a good starting point for creating other spiders. C#
GetPrice.java 12/15/2004 A very simple Bot example. This program will download the price of an item on Amazon by ISBN. Java
datacopy.zip 11/1/2005 Transfer one JDBC database to another. Java