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
- In Visual Studio .NET:
- Create a new empty "Win32 Project."
- Right Click on the project in the Solution Explorer, and select Properties
- Under the Linker folder, select Input.
-
- In the Additional Dependencies field type wkgl.lib
- Select 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.
- Thats 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 to your link path, i.e. where you put wkgl.lib. If you do not add wsock32.lib
then you will get a whole lot of weird linking errors.