7 #include <Wt/WApplication> 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");
30 int main(
int argc,
char **argv)
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)
int main(int argc, char **argv)
static void configureAuth()