C/C++ programming

Here is source code of my programs I have written in C and C++ using VC++ 5.0/6.0 and few using Borland C++ 2.0. Included are full sources and most have also compiled exes.

Last modified: 18. maj 2002

What's on this site

My C/C++ Source Code:

Other stuff:




Crystal Space

Crystal Space is open source multiplatform 3D engine (library) written in C++. If you want to compile any of my Crystal Space programs you have to first download Crystal Space library. Here is my Crystal Space code, all in C++:




Crystal Space Picture Viewer - source code 94 KB Updated: 2. May 2001. Binary download now available. Windows
VC++ 6.0


"See" - picture viewer.
I tried to write ACDSee clone with this program. It can display many picture formats (jpg, gif, bmp, png, ...). It was written using Crystal Space and its Windowing System. Crystal Space is multiplatform library, but this program will only run on Windows. Minor changes would be needed to work on all other platforms. This program also is not so complete, but it basically works. You can only view pictures on your first drive - whatever that be. That is because Crystal Space's file system (VFS) was too complicated and I wasn't in the mood to mess with it.

In the source code you can also find useful classes that you can use in your program independentley:

  • directory browser (tsDirTree)
  • file list (tsFileList)
  • file browser (tsFileBrowser), using directory browser and file list, like Windows file explorer
  • image window (tsImgWnd and tsImgWndParent)
  • image browser and viewer (tsIB_ImageBrowser), this is basically the whole program, which you are able to insert in your program, by adding files to your project


  • All names (of functions, variables and files) that begin with "ts" (my initials) are independent (global). That means that they can be used in any other program. They may only need some other file which starts with "ts".

    To build this source code you need CS library v0.18001 and you need to replace old cslistbx.cpp with the one included in this package.

    You can download binary version for Windows with see.exe and all dlls needed. (600 KB). But it doesn't work! When I tried it on a computer that didn't have CS dlls installed it said: No iVFS plug-in loaded! Although it should work... You can still try it, maybe you'll have luck. If you have CS 0.18 installed on your system, it should work.

    29. March 2001: Added CS library file cslistbx.cpp, which has one line of my modification, marked within Start Tone Skoda and End Tone Skoda.




    Windows Source Code Written With Microsoft Visual C++ 6.0




    Basic MDI application. 58 KB 23. September 2001 Windows
    VC++ 6.0
    Source and Exe

    This is basic application, which can be used to build your specific application on top of it. To use it, rename "BasicApp" with "YourAppName" everywhere. Made using Visual C++ 6.0, using C++, some STL, no MFC.

    Features:
    • MDI = Multi Document Interface.
    • Ini File: It saves folowing:
      • Main application window position.
      • Directory when open/save dialog.
      • Recent files.
    • Menu
    • Toolbar
    • Status bar with status parts.
    • About dialog box.




    Minimize, restore or close all desktop windows 28 KB Updated: 21. December 2001 Windows
    VC++6.0
    Source and Exes

    Little utility program which will minimize, restore or close all desktop windows, depending on what build you give it. I use it with TrayIcon Works shareware program to put icon on Win95 tray to minimize all windows with one click to access desktop, like in Windows 2000.

    Updated: 21. December 2001:
    Closes also Internet Explorer window, achieved by changing SendMessage to PostMessage to close a window.




    Windows source code written with Microsoft Visual C++ 5.0




    WinCFuncs.zip 20 KB Windows miscalenous C functions and C macros Source

    Many miscalenous C functions and C macros I use in my projects. Many of the project that are below use these functions.




    Reco.zip 95 KB Unfinished character recognition program program Source and EXE

    Start of project that would recognize characters you draw with mouse. It doesn't do that yet, but it's quite interesting and quite a lot of C code, you may find many useful graphics functions in the code.

    5. May 2001: Absolute file paths removed, you can also compile code now.




    hookapp.zip 85 KB Hooks all Windows messages Source and EXE

    This program hooks all windows messages. When you run hookapp.exe you will notice that when you run any program it will allways be run maximized, and whenever you press the ESCAPE key current program will have drawn recatangle around its window and shutdown in few seconds, unless you press ESC key again in this time. It can crash.

    5. May 2001: Removed absolute paths. So hookapp.exe works now. You can also compile code.




    MDI in C.zip 37 KB Windows MDI (Multi Document Intercafe) example in C Source and EXE

    Example how you can have MDI (Multi Document Interface), child windows in main application window, like in Microsoft's Word, Excel, Visual Studio ... And it's in C!, not in MFC or in C++, which you can get everywhere.

    5. May 2001: Now you can compile code.




    Direct3Dmisc.zip 19 KB Miscalenous Direct3D functions Source and EXE

    My Direct3D functions and basic code how you can get Direct3D program to work (in C and C++).




    t3D.zip 119 KB Very unfinished Direct3D world builder Source and EXE

    This was ment to become world builder for Direct3D games, but it's very unfinished.
    It has also little scripting language. When you are in edit window press F5 key and command in that line will execute.You can change numbers (distances).

    5. May: t3d.exe loads files now and you can also compile source.




    Vr.zip 100 KB My Experimental Windows 3D Engine Source and EXE

    My very own 3d engine. It's slow and not useful for anything but I did it by myself, when I didn't have internet and had no samples. Press different keys on the keyboard. It moves house and cross when you press arrow keys.

    5. May: Vr.exe works now and you can also compile source.




    DOS Source Code Written With Borland C++ 2.0




    ts_colors.zip 20 KB Colors Mixing Demo DOS, Source and EXE

    This was my very first program that did something. Written in summer 1998. It changes colors on screen randomly by mixing red/green/blue. There are also sound besides that are higher by brighter colours... I think it's pretty kewl little program, like some demo.




    bc3d.zip 45 KB Experimental DOS 3D Engine Prototype Source and EXE

    It's a sort of a bad 3d prototype, not useful for anything now with so many good 3d engines. It displays a house, which you can then turn around in 3d world. After I've already writtten it with VC, I tried also with this because I thought I would be faster developing with BC, because VC compiles sooo long.

    May 5. 2001: Program now works and you can compile it.




    catch.zip 33 KB Unfinished DOS 2D Game Source and EXE

    The summer 1998 was the first time I started programming, and this is one of my first programs and my very first game ever. It's hardly playable. It's a 2d game. You have to catch balls that are falling from the sky with your tank.

    !!!!!!!!!!!!DOES NOT EXITST!!


    pcsounds.zip 44KB Some Sounds Throught PC Speaker DOS, Sources and (some) EXEs

    Some pretty cool sounds, random, throught PC speraker. My experiments.




    bc_other.zip 35KB My C Programming Learning Just sources

    My first attempts of programing. Many little files. You can see how I learned to program in C...




    Macros And Add-Ins For Microsoft Visual C++ 5.0/6.0




    Run Current Document From Within DevStudio 32 KB 20. April 2001 VC++ 6.0 add-in source and dll

    With this add-in you can run current document with its associated program from within DevStudio.




    VC++ 5.0 macros.zip 40 KB DevStudio 5.0 Macros (Scripts) Source

    A lot of macros (scripts) you can use in Visual C++ 5.0 enviromet. Check it out. They can be a lot of help and useful if you have VC++ : Reporting all functions that are in currently open document and writing them at the beginning of the document ....




    Only The Best C/C++ Links

    My C++ coding style rules

    Optimization

    C++ Optimization Strategies and Techniques
    Standard C++ Library User Guide and Tutorial - Much better help for STL than the one that is with VC++ 6.0 MSDN

    Style

    C++ Programming Style Guidelines - style tips with examples
    Coding Style - good short tips
    Style Guidelines for Programming in C/C++ - nice short tips

    Other

    Source code to windows API
    Bjarne Stroustrup's homepage - see who's the creator of C++
    VisualC++ Add-Ins: great site with free add-ins and their source code




    You are visitor 285
    The URL for this page is http://localhost/MySite_Local/c.asp