Visual Studio 2008 – Direct2D Samples from Win7 SDK

  direct2d posted by (C)takao21203 Today I downloaded the Win7 SDK. Actually it is possible to use Visual Studio 2008 on a 1GB Intel Atom netbook. Visual Studio Express 2013 is very slow! But Visual Studio 2008 is useable. The Win7 SDK includes a lot of sample source codes. For instance Direct2D. When I tried to compile it this night, … Continue reading

STM8 DISCOVERY – 7segment serial link (2)

PIC 16f884 LED display posted by (C)takao21203 Using a PIC 16f884 here to test some new ideas. All the I/O bits are now freely mapable from tables. The TRISTATE is computated by the firmware.Actually these small displays are not very bright- or maybe there is a mysterious bug. STM8 circuit posted by (C)takao21203 Added some shuttle boards to the STM8 … Continue reading

STM8 DISCOVERY – 7segment serial link (1)

stm8 board posted by (C)takao21203 This is a STM8 Discovery board. I have added a PIC 16f884 and a small 7segment display. I want to program a serial link between the two controllers. Later, a display will be connected to the STM8 chip directly. However, I have some ideas to improve the 7segment decoding/driving, and it is easier to test … Continue reading

C language on MSDOS…

C program which I wrote. It can set pixels, draw a circle, and draw a box. All very primitive- technology from 30 years ago. It is old graphics card and MSDOS (FreeDOS) which runs in a hard drive partition. C compiler is not free but it is not sold anymore. Software from 1992! Eventually it is Borland C++. It can … Continue reading

obscure and ancient graphics card for IBM PC

I wrote a small C program for this graphics card. It is a CGA model which was used in early 1980s! After a while it really works. A lot of effort is required to set a single pixel. 320×200 in 4 colors… Borland C++ is used but this program is just plain C language. Tables are used to set and … Continue reading

C language – Dereference cast

Original C language used typecasts, for instance: pointer to const pointer to const unsigned char -> pointer to const unsigned char Modern Windows C is using an array of object orientated techniques to virtualize, and provide generic templates. There are for instance different copy constructors, which can do primitive conversion between value and number. There are new pointer types such … Continue reading

game prototype (3)

One line of code will add a copy of a building to the treelist on the right side, including all child nodes! I somehow derived the idea not to write code for this functionality, but establish correlations using the Visual Studio Designer. It worked! In the end, buildings will be shown on the map, using the data from the treelist. … Continue reading

game prototype (2)

program elements: -map (display, load/save) -map navigation -buildings definition treelist -map buildings treelist -map editor/creator -game rules engine -timer interrupt system/events processing For the prototype, simple 2D objects will be displayed on the map. Later, code becomes added for 3D display! After some consideration, it seems to be desireable to display the opponents city on the map. So the game … Continue reading