#include <Wt/WApplication>
#include <Wt/WServer>
#include "HangmanGame.h"
#include "Session.h"
Go to the source code of this file.
◆ createApplication()
Wt::WApplication* createApplication |
( |
const Wt::WEnvironment & |
env | ) |
|
Definition at line 13 of file hangman.C.
15 Wt::WApplication *app =
new Wt::WApplication(env);
17 app->setTitle(
"Hangman");
19 app->messageResourceBundle().use(app->appRoot() +
"strings");
20 app->messageResourceBundle().use(app->appRoot() +
"templates");
22 app->useStyleSheet(
"css/hangman.css");
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 30 of file hangman.C.
33 Wt::WServer server(argc, argv, WTHTTP_CONFIGURATION);
40 }
catch (Wt::WServer::Exception& e) {
41 std::cerr << e.what() << std::endl;
42 }
catch (std::exception &e) {
43 std::cerr <<
"exception: " << e.what() << std::endl;
Wt::WApplication * createApplication(const Wt::WEnvironment &env)
static void configureAuth()