A Useful C/C++ Snippets Archive
Friday July 31, 2009
Never underestimate the collaborative power of developers on the Internet. It's why there are now tens or possibly hundreds of thousands of open source projects. I can remember working in ... Read More
Microsoft Bing Silverlight SDK/Search Application
Thursday July 30, 2009
Surprisingly, this isn't from Microsoft and I need to spend a bit of time debugging it as searches with it only produced Client Error messages when I built and ran ... Read More
Casting Your Buggy C++ Code Aside
Wednesday July 29, 2009
Microsoft came clean today about a recent bug in Internet Explorer in an ActiveX video streaming control. Here's the code, Can you spot the bug? It's very subtle...
_int64 cbSize;
hr = ... Read More
The Fallacy of Premature Optimization
Monday July 27, 2009
One of the classic computer science texts says (in my words), "get it right then make it faster". The quote "premature optimization is the root of all evil" is attributed ... Read More
The Future of ASP.NET?
Sunday July 26, 2009
I do wonder sometimes about Microsoft's strategy regarding
ASP.NET. It has been their big web publishing system for well over four years, and apart from changes to C# and the newer ... Read More
Apollo Guidance Computer Simulation
Friday July 24, 2009
It's just 40 years on from the Apollo 11 Moon Landing and yes someone has produced a virtual Apollo Guidance Computer. This is not a lunar landing game but an ... Read More
A slight mod to the C Bot
Thursday July 23, 2009
I forgot the #ifdef which controls the direction of the import/export so that would make creating a bot a little harder! The idea is is that by placing the function ... Read More
Embed a Wiki in Your .NET application
Tuesday July 21, 2009
While not suitable for every application, if you wanted to create a wiki yourself, it would take a fair bit of programming effort. It would have to understand wiki syntax ... Read More
And the C Programming Answer Is..
Monday July 20, 2009
As correctly spotted by Stole, that when a C (and other language) compiler, strings like "hello, world!" are often put into read only memory. Older CPUs might have had the ... Read More
Online Programming Challenge 2 restarting in August
Sunday July 19, 2009
The start date is August 9th. I've created a bot in C. The dll interface for C and C++ is the same as before but with a few more parameters. ... Read More
Nice Little C Problem
Saturday July 18, 2009
I'd expect experienced C developers to get this, but it's a good one for beginners. Why does this crash?
char *s = "hello, world!";
s[0] = 'H';
Answer on Monday!
Link to C
Programming ... Read More
Facebook User? Join the About C,C++ and C# Facebook fans
Friday July 17, 2009
Join "About C,C+ and C# Programming Facebook fans" today. Yes, I've setup a Facebook group for here so if you're a Facebook user, feel free to join.
C# Search Algorithms ... Read More
Should you rent your programming services out?
Thursday July 16, 2009
If you've acquired a bit of programming experience it's tempting to try and make money by renting yourself out. You don't even have to leave home to look for work ... Read More
ChaiScript C++ Scripting
Tuesday July 14, 2009
Just released is Chaiscript an interesting new open source scripting language designed specifically to embed in C++ applications. There is tight integration between your application and the Chaiscripts user ... Read More
What Use are Fractals?
Monday July 13, 2009
I think they're great to look at, and the fact that they scale almost indefinitely is truly remarkable. But lets be honest, unless you are looking for some new deep ... Read More
Dabbling With Mono/DB2
Sunday July 12, 2009
It's not confirmed but I think I've got H1N1 which is a human virus, not a computer one! It's just a nasty flu bug and has left me a bit ... Read More
Silverlight 3 Released
Saturday July 11, 2009
Earlier than expected (by one day), Silverlight was released a couple of days ago. This is almost as significant a release in itself as Silverlight 2 was over the original ... Read More
Microsoft .NET Micro network
Friday July 10, 2009
Thanks to Lennie de Villiers for the tip off. As well as Silverlight 3 which came out today, there's another .NET framework with a very small CLR; that's the ... Read More
Open Source Bug-Tracking Software
Wednesday July 8, 2009
Tracking bugs is one of those things that computers do very well. If you're developing software commercially, or even open source or for yourself then you should be using one. ... Read More
Microsoft and Mono Now Playing Nicely
Tuesday July 7, 2009
Not that there's ever been acrimony but Mono of course is from the other side of the tracks and there's always been an assumed threat hanging over its head that ... Read More
Selling a Service Not a Product
Monday July 6, 2009
Software Piracy is a problem for software sellers though I doubt that the figures bandied about for revenues lost are that accurate. I've seen people copy software, games over the ... Read More
If you need Help
Sunday July 5, 2009
For your applications, you can go for a professional help system or roll your own. One example of the latter and made available for free or open source (license is ... Read More
Atari 7800 Console Games Source Code
Saturday July 4, 2009
As it's July 4th here's something slightly off-topic. Back in the early 1980s, Atari ruled the roost in video games. They'd started in 1972 and Pong was the first creation ... Read More
Developing Peer to Peer Applications in C++
Friday July 3, 2009
Amazingly back about 1997, it was still possible to have PCs connected to the Internet without firewalls or proxy servers. However the bad guys soon got active and a year ... Read More
Windows 7 API Code Pack for .NET
Thursday July 2, 2009
The next version of Windows is only a few months away and Vista will then be consigned to the same shelf as Windows ME. Prices have recently been announced for ... Read More
Open Source Embedded C# Webserver
Wednesday July 1, 2009
Developed by Swedish developer Jonas Gauffin who runs his own telecoms company, C# WebServer lets you embed a webserver into your .NET applications, just like Opera Unite does with browsing. ... Read More

