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 previous 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?
 
Read Message
Read Message
Previous Topic: does U++ support VTK
Next Topic: Sort font face list
Goto Forum:
  


Current Time: Thu May 16 11:07:18 CEST 2024

Total time taken to generate the page: 0.02757 seconds