Generating a Stack Crawl

When developing an application, it is sometimes useful to add logging functionality to help track down bugs. One of the tricks I like to pull out once in a while is automated bug reporting. When the application gets into an unexpected state, it’s sometimes nice to construct a report that users can send to you to help you track the problem down.
Continue reading

Posted in Win32 | Tagged , | 7 Comments

The Importance of Calling Conventions

Calling conventions are something you generally don’t have to worry about as a programmer because the compiler usually takes care of everything for you. But when you start interacting with code outside of your control (such as shared libraries), calling conventions can become very important.
Continue reading

Posted in Framework Design | Tagged , | Leave a comment

C++ Gets For-Each

One of the new language features that has been added to C++0x is the for-each syntax. Anything which defines a range can be iterated over by the new syntax, including arrays, anything you can call begin and end on, or initializer lists. The syntax uses the colon operator within a for loop, like this:
Continue reading

Posted in C/C++ | Tagged , | 1 Comment