Source Code


Here are some of my projects/tutorials I have been working on. The reason why I am offering this page is simple: So many people and sites helped me learning how to programm, now I want to help as well. I hope some people will be happy with what they find here... Yes, it's not much so far, but this site will grow from time to time too...
By the way, programming is just one small hobby I have, I'm not good and often not sure what I progamm, but I hope it will help some people anyway...

The c++ projects are written in dev-c++ from bloodshed, but it is not much work to convert them to Borland C++ Builder or Microsoft Visual Studio.




C++

OpenGL screen saver

If you are intersted in creating a screen saver just download this file! You will learn how to create it and how to include OpenGL. If you are not so familiar with programming or want to create a screen saver immediately - no problem - just replace the Draw() function with your own animation.
The original screen saver code comes from Lucian Wischik. Read the file for more information.

screensaver.zip [95kb, dev-c++ project / windows] download
Screenshot



OpenGL screen to avi recorder

This is a small class which is able to capture your OpenGL buffer and writes it to an avi file, either compressed or uncompressed. It can show a standard dialog box to select the codec to use.

Keywords: AVIFileInit, AVIFileOpen, AVIFileCreateStream, mmioFOURCC, AVISaveOptions, AVISaveOptionsFree, AVIMakeCompressedStream, AVIStreamSetFormat, AVIStreamWrite, AVIStreamRelease, AVIFileRelease, AVIFileExit

gl_video.zip [6kb, dev-c++ project / windows] download
 



Equation calculator v1.02

This class is part of my screen saver 'blurred'. It can calculate equations (like y=25*sin((alpha+beta)*2), notice the variables!). You can set the values of the variables and afterwards you can calculate the result (here: y). This technique is useful if you want dynamic math in your application, e.g. preset files for my screen saver. The syntax error detection is not the best, so you have to be sure the equations are correct!

equation.zip [9kb, c++ files / windows] download
old versions: v1.00
 






C#

JPEG Image Size Converter

I designed this program to resize photos and images for my homepage. It resizes all .jpeg and .jpg files from a directory into one or two images of different sizes. It can also create a file with a link to the image. This is basically for my own use only, just don't select this option if you don't want it.
This is my first C# program, any hints/ideas/bug reports/addons are welcome!

jpegsizeconverter.zip [55kb, borland c# project / .net] download

Screenshot






PHP

htmlencode special

This is a simple example on how you could let people make underlined, bold, italic text or create a link in a guestbook entry or similar things without giving them the possibilty to enter real html code. But even real html code can be included, but this should not be used on public pages as this can be abused. The code should only give you an idea on how to handle user inputs.

htmlencode.zip [2kb, php file / all platforms] download
Screenshot




Disclaimer:
All files are scanned for viruses before uploading, however I cannot guarantee a virus free download or take responsibilty for damage caused by my programs/source code! Also I do not guarantee the projects/files I'm offering are bug free or will work on your system.