Generating 64-bit Random Numbers in a Given Range
There are good standard ways of generating 32-bit random numbers. If you need something really simple, it is possible for example to generate decent random numbers with a Linear Congruential Random Number Generator:
Using BerkeleyDB to Store Serialized Objects in C++
I’ve been working on a C++ interface to Berkeley DB to support some ongoing projects. The goal is to create an interface that allows me to store serialized C++ objects in a database. Each object is flattened into a text…
Link Errors Compiling MySQL C++ Programs on 64-bit Windows
I’m starting to code up a simple MySql connector class. Here is the code for the class. First the header:
Generate Stack Traces on Crash Portably in C++
There are three basic steps to getting this done, trapping signals, getting the stack frames, and then demangling the c++ symbols. Trapping Signals When a program crashes the operating system will sent it a signal, to give it one last…