Description: This program rotates a 3d cube and a sphere with GDI+.

To compile: Run the file "Compile.Bat" from the command line.

About the source code:

This program has 6 classes:

Note that the zip also contains a compiled version, and some other files, used by SharpDevelop, a free (GPL) development environment for C#; its really good!

Editor's note: You can also compile the same code in in Visual Studio .NET

To compile same code in VS.NET, create a Windows application and unzip the code and copy all files in your project directory. Now use Add Existing Item project menu item to add classes to the Windows application as you can see in Figure 1.

Figure 1.

Add all files to the project. See Figure 2.

Figure 2.

Now replace contents of Form1.cs with the contents of Main.cs. Compile and run the project.

Enjoy.

Thanks Ariel. Nice application ;).