home
|
features
|
introductory examples
|
more examples
|
getting started
|
easy FAQ
|
advanced FAQ
|
download
|
help
|
about
Getting started
How to install the library
The library release should be structured as follows:
- build
- vs10
Contains a Visual Studio 2010 solution with two projects for building EasyCP as a static library and Demo as a console application using the library.
- vs11
Contains a Visual Studio 2012 solution with two projects for building EasyCP as a static library and Demo as a console application using the library.
- cb12.11
Contains two Code::Blocks 12.11 projects for building EasyCP as a static library and Demo as a console application using the library.
- makefile
Contains several makefiles generated by cbp2make. These makefiles may be adapted to build EasyCP as a static library.
- src
- EasyCP
Contains the C++ source files specific to the EasyCP library.
- Common
Contains some general C++ source files used by the EasyCP library.
- Demo
Contains the C++ source files of a standalone console application that illustrates how to use the EasyCP library.
In order to build the library, you may :
- use one of the projets provided in the build folder.
- use one of the makefiles provided in the build/makefile folder.
- use your own tool.
Please note that the projects provided in the build folder rely on the folder structure that comes with the library release : This structure should not be changed !
In any case, you should always keep the structure (src/EasyCP + src/Common) and its content unchanged.
To quickly test the EasyCP library, you may find it useful to insert your testing code in demo.cpp,
or replace its content with the template file provided below.
How to use the library
Here is a simple template file you can use to quickly start with EasyCP :
#include <iostream>
#include <string>
#include "EasyCP/EasyCP.h"
using namespace std;
using namespace easy;
using namespace cp;
int main()
{
try
{
}
catch (const easy::Exception & e)
{
cout << e.what() << endl;
return 1;
}
catch (const std::exception & e)
{
cout << e.what() << endl;
return 1;
}
return 0;
}
Now it's up to you !
Though using EasyCP should not require a high learning curve, it is recommended to
- read some of the introductory examples and the advanced ones
- read at least the main_features()located in the file src/Demo/demo.cpp
that comes with the library.
These sections will give you relatively exhaustive list of the types and functions
that come with the EasyCP library, and serve as a runnable documentation.
home
|
features
|
introductory examples
|
more examples
|
getting started
|
easy FAQ
|
advanced FAQ
|
download
|
help
|
about