About The Contest

The first ever Olympiad of Misguided Geeks contest at Worse Than Failure (or OMGWTF for short) is a new kind of programming contest. Readers are invited to be creative with devising a calculator with the craziest code they can write. One lucky and potentially insane winner will get either a brand new MacBook Pro or comparable Sony VAIO laptop.

Navigation

Advertisements

Entry #100060: CalcWrapper (first update)

by Badr Z.
CalcWrapper is a proof of concept and a clever solution for a simple problem: making the 4 basic operations.
The way it works is “easy”. First, it launches Calculator (calc.exe) and then simulates typing using SendMessage.
Finally, it retrieves the result value and displays it after closing Calculator.
You see, CalcWrapper is a wrapper that combines the power of the too-much-complicated Ms Calculator and an easy-to-use Win32-based GUI.

Download0 Comments