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  |
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. .
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?
|
|
|
|
Goto Forum:
Current Time: Wed Apr 30 14:44:28 CEST 2025
Total time taken to generate the page: 0.00664 seconds
|