#include <Wt/WApplication.h>
#include <Wt/WServer.h>
#include "HangmanGame.h"
#include "Session.h"
Go to the source code of this file.
Definition at line 15 of file hangman.C.
17 auto app = cpp14::make_unique<WApplication>(env);
19 app->setTitle(
"Hangman");
21 app->messageResourceBundle().use(app->appRoot() +
"strings");
22 app->messageResourceBundle().use(app->appRoot() +
"templates");
24 app->useStyleSheet(
"css/hangman.css");
26 app->root()->addWidget(cpp14::make_unique<HangmanGame>());
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 32 of file hangman.C.
35 WServer server(argc, argv, WTHTTP_CONFIGURATION);
42 }
catch (WServer::Exception& e) {
43 std::cerr << e.what() << std::endl;
44 }
catch (std::exception &e) {
45 std::cerr <<
"exception: " << e.what() << std::endl;
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)
static void configureAuth()