Project

General

Profile

Bug #818 » test1.C

Kurt Roeckx, 05/19/2011 09:25 PM

 
#include <Wt/WApplication>
#include <Wt/WText>
#include <Wt/WImage>
#include <Wt/WAnchor>
#include <Wt/WContainerWidget>

using namespace Wt;

class Test : public WApplication
{
public:
Test(const WEnvironment& env);
};

Test::Test(const WEnvironment& env) : WApplication(env)
{
WAnchor *a = new WAnchor(root());
a->setRefInternalPath("/foo");
a->setText("foo");
}

WApplication *createApplication(const WEnvironment& env)
{
return new Test(env);
}

int main(int argc, char *argv[])
{
return WRun(argc, argv, &createApplication);
}

(1-1/2)