This section of the archives stores flipcode's complete Developer Toolbox collection, featuring a variety of mini-articles and source code contributions from our readers.

| Adding MSDEV Libraries Submitted by

I think this is a MSDEV only tip again.
Instead of adding libs and dll's tediously in the project settings (and sometime forgetting them) you can easily add them like so:
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "dinput8.lib")
#pragma comment(lib, "dxguid.lib")
etc.
A non-MSDEV (portable) tip is:
Instead of putting #ifdef _MYFILE_ \ #define _MYFILE_ \#endif in each .h/.hpp file, by putting them around the actual #include "myfile.h" call in the .cpp file saves you a bit of time since the file doesn't have to be parsed by the compiler looking for the corresponding #endif statement.
You can do this with #pragma once in MSDEV.

The zip file viewer built into the Developer Toolbox made use of the zlib library, as well as the zlibdll source additions.

Copyright 1999-2008 (C) FLIPCODE.COM and/or the original content author(s). All rights reserved.
Please read our Terms, Conditions, and Privacy information.