I am writing a CMS and need to switch databases based on hostName from
Environment, this is based on wt-home example.
This causes a crash:
try
{
Wt::WServer server(argv[0]);
server.setServerConfiguration(argc, argv, WTHTTP_CONFIGURATION);
const Wt::WEnvironment &myEnv =
Wt::WApplication::instance()->environment();
QString filePath = server.appRoot().c_str();
filePath.append("domains.xml");
readDomains(myEnv.hostName().c_str(), filePath);
...
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries. Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest