Overview
Features
Download
Documentation
Community
Add-Ons & Services

change POCO_APP_MAIN

Please post support and help requests here.

change POCO_APP_MAIN

Postby saka » 15 Feb 2007, 14:22

The macro should really use namespace's since not all developers like to start the .cpp file with a lot of "using namespace" clauses

In the macro POCO_APP_MAIN in Util/Application.h

change
AutoPtr pApp = new App;
to
Poco::AutoPtr pApp = new App;

and
"Application::EXIT_CONFIG;"
needs to be prefixed with Poco::Util



saka
 
Posts: 4
Joined: 19 Sep 2006, 16:52

Re: change POCO_APP_MAIN

Postby peter » 16 Feb 2007, 13:49

> The macro should really use namespace's since not all developers like to start the .cpp file with a lot of "using namespace" clauses

I completely agree.
Version 1.2.9 will include this change.
br
Peter

>
> In the macro POCO_APP_MAIN in Util/Application.h
>
> change
> AutoPtr pApp = new App;
> to
> Poco::AutoPtr pApp = new App;
>
> and
> "Application::EXIT_CONFIG;"
> needs to be prefixed with Poco::Util
>
>
>
>
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest