|
||||
| Download Source Code | ||||
rulib - General purpose library
rulibIntroductionA C++ library for the Windows platform containing general purpose classes for files, images, sockets, registry, video capture, MIME, and other basic purposes.sub_socketsUnfortunately, MS didn't make using the Socket 2 interface very straight forward. You have to disable the original socket interface by including the following line of code before you include Windows.h.
// Turn off socket 1 interface #define _MSWSOCK_ Then include the Windows Socket 2 interface using something to the effecto of the following.
#include <WinSock2.h> #pragma comment( lib, "WS2_32.lib" ) I usually stick this in my StdAfx.h file. To see an example, check the StdAfx.h file in rulib.h. Folder StructureThe following example folder structure is assumed. You may need to make modifications if your structure does not match. If the folder is not mentioned, it's location (probably) won't matter.
Linking to your project
#include "../../../lib/rulib/inc/rulib.h" #ifdef _DEBUG #pragma comment( lib, "../../../lib/rulib/lib/db_rulib.lib" ) #else #pragma comment( lib, "../../../lib/rulib/lib/rulib.lib" ) #endif
#include "rulib.h"
Compiling this library.To compile this library you will need the following
or
Useful Tools
|
||||
|
Copyright Robert Umbehant This documentation is covered by the LGPL |