How to use Rogus McBogus


To use the Rogus McBogus library, perform the following steps. Note that the full location of files and directories mentioned in the instructions below depend on where you have decided to put the contents of the Rogus distribution. For example, on my system I have chosen to break things up in a UNIX-like manner, so, "include" means "c:\usr\include\rogus" and "Rog.lib" means "c:\usr\lib\rogus\Rog.lib".)

  1. Add the Rogus "include" directory to your project's include directories. In MSVC++, this option is located in menu "Build", menu item "Settings", tab "C/C++", category "Preprocessor", field "Additional include directories".
  2. Add the libraries "Rog.lib" and "winmm.lib" to your project for both the Release and Debug configurations. In MSVC++, these options are located in menu "Build", menu item "Settings", tab "Link", category "General", field "Object/library modules".
  3. Make sure you are using a multithreaded version of the C runtime library. In MSVC++, this option is located in menu "Build", item "Settings", tab "C/C++", category "Code Generation", field "Use run-time library".
  4. If you are using Microsoft Foundation Classes, you will need to explicitly #include <mmsystem.h> before you include any Rogus header files.

All classes in Rogus are part of the namespace "rogus". You can reference them as rogus::classname or by placing a statement "using namespace rogus;" at the top of any files that use it.

Be aware that versions 1.9a and higher of Rogus do not support versions of MSVC++ earlier than 5.0. This is due to incomplete support for namespaces and the lack of type "bool" in these earlier versions of MSVC++. If you really want to use 1.9a or higher with 5.0 or lower, you can modify Rogus pretty easily by removing all the namespace stuff & #typdefing bool.