To install the White Knight GUI Library:
- Unzip the WKGL.zip
- Copy WKGL.h and WKGL folder to your include directory
- Copy WKGL.lib to your library directory.
Usage
In general you need to do the things to use the White Knight GUI Library.
- First you must add WKGL.lib to you link path. In MSVC 6.0:
- Create a new empty Win32 Application.
- Click Project -> Settings...
- Click the Link tab.
- In the Object/Library Modules edit box type WKGL.lib at the end.
- Click Ok
- Create a new C++ source file.
- Add #include <WKGL.h> to the file.
- Add using namespace wkgl; to the file, or preface each
class and function name with wkgl::
- Create a WPARAM main() function.
- That it!.
To use the Thread and ThreadGroup classes
you must add #include <WKGL/ThreadGroup.h> to your source file.
To use the Socket and ServerSocket classes
you must add #include <WKGL/ServerSocket.h> to your source file, and
add wsock32.lib or its equivelent to your link path. If you do not add wsock32.lib or its
equivelent then you will get a whole lot of linking errors.