Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » how to solve the error "a namespace with this name does not exist"
how to solve the error "a namespace with this name does not exist" [message #8871] Wed, 04 April 2007 14:04 Go to next message
bitsun is currently offline  bitsun
Messages: 12
Registered: March 2007
Location: Germany
Promising Member
I spent a lot of time to make it work in VC8
I think i almost make it finally. But there is a error:
"Upp" a namespace with this name does not exist

This is the code,it is an example from the website:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class HelloWorld : public TopWindow {
MenuBar menu;
StatusBar status;
void FileMenu(Bar& bar);
void MainMenu(Bar& bar);
void About();
public:
typedef HelloWorld CLASSNAME;
HelloWorld();
};

void HelloWorld::About()
{
PromptOK("{{1@5 [@9= This is the]::@2 [A5@0 Ultimate`+`+ Hello world sample}}");
}
void HelloWorld::FileMenu(Bar& bar)
{
bar.Add("About..", THISBACK(About));
bar.Separator();
bar.Add("Exit", THISBACK(Close));
}

void HelloWorld::MainMenu(Bar& bar)
{
menu.Add("File", THISBACK(FileMenu));
}
HelloWorld::HelloWorld()
{
AddFrame(menu);
AddFrame(status);
menu.Set(THISBACK(MainMenu));
status = "Welcome to the Ultimate++ !";
}

GUI_APP_MAIN
{
SetLanguage(LNG_ENGLISH);
HelloWorld().Run();
}


And why does the website not provide any tutorials about building upp library in VC,etc.someone did it,but the files they uploaded are all corrupted. Crying or Very Sad .
I built it and created five lib files,i think the following are the fundamental libararies to develop with Upp library
core,ctrlcore,ctrllib,draw, richtext
right?
Re: how to solve the error "a namespace with this name does not exist" [message #8883 is a reply to message #8871] Thu, 05 April 2007 06:30 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
bitsun wrote on Wed, 04 April 2007 08:04

I spent a lot of time to make it work in VC8 I think i almost make it finally.



I spent a few minutes Wink

Quote:


And why does the website not provide any tutorials about building upp library in VC,etc.someone did it,but the files they uploaded are all corrupted. Crying or Very Sad .



They are not corrupt. They just offer you a possibility to learn tar and gzip.

For you personally I uploaded small workspaces (33 projects) to build basic UPP modules with vc71 and vc8.

Have fun.


Regards,
Novo
Previous Topic: does U++ support VTK
Next Topic: Sort font face list
Goto Forum:
  


Current Time: Mon Apr 29 14:41:55 CEST 2024

Total time taken to generate the page: 0.02226 seconds