U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Upp 612-dev2 released
Upp 612-dev2 released [message #7304] Thu, 21 December 2006 08:50 Go to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

It took a while (I had to rewrite the installer), but here it is - new, shiny 612-dev2 Wink

Changes since last dev:

+ upp uses Upp namespace now.
+ TopWindow::FullScreen
+ GTK chameleon can now paint TabCtrl and SpinButtons
+ New Vector optimization (reduces Linux executable size by 0.8%)
+ PCRE (regular expressions) with simple wrapper in plugin
+ GridCtrl (changelog in package)
+ DateTimeCtrl is now part of CtrlLib
+ examples: HomeBudget (demonstrates GridCtrl and sqlite usage)
+ First MacOS fixes (thanks go to lundman)


Merry christmas to all Upp::users!
Re: Upp 612-dev2 released [message #7305 is a reply to message #7304] Thu, 21 December 2006 10:16 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
winxpsp2+mingw(upp's),compiling HomeBudget errors as following:

D:\UltiStudio\upp\uppsrc\GridCtrl\GridCtrl.cpp:3306: error: ambiguous overload for 'operator!=' in '(((Upp::Edits*)((Upp::GridCtrl*)this)) + 192u)->Upp:
:Vector<T>::operator[] [with T = Upp::Edit](id)->Upp::Edit::factory != 0'

[Updated on: Thu, 21 December 2006 10:18]

Report message to a moderator

Re: Upp 612-dev2 released [message #7306 is a reply to message #7305] Thu, 21 December 2006 11:30 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Ulti wrote on Thu, 21 December 2006 04:16

winxpsp2+mingw(upp's),compiling HomeBudget errors as following:

D:\UltiStudio\upp\uppsrc\GridCtrl\GridCtrl.cpp:3306: error: ambiguous overload for 'operator!=' in '(((Upp::Edits*)((Upp::GridCtrl*)this)) + 192u)->Upp:
:Vector<T>::operator[] [with T = Upp::Edit](id)->Upp::Edit::factory != 0'

Oops.. I forgot to check mingw..
Fix is easy:

Change
bool factory = edits[id].factory != 0;

to
bool factory = edits[id].factory;
Re: Upp 612-dev2 released [message #7310 is a reply to message #7306] Thu, 21 December 2006 15:42 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
Another Mingw error:
In file included from D:/UltiStudio/upp/out/CtrlCore/MINGW.Debug_full.Gui\$blitz.c pp:114:
D:/UltiStudio/upp/uppsrc/Core/Lang.h: In member function `virtual LRESULT Upp::Ctrl::WindowProc(UINT, WPARAM, LPARAM)':
D:/UltiStudio/upp/uppsrc/Core/Lang.h:41: error: too many arguments to function `Upp::String Upp::GetLocaleInfoA(LCID, LCTYPE)'
D:\UltiStudio\upp\uppsrc\CtrlCore\Win32Proc.cpp:261: error: at this point in file

thanks! Smile
Re: Upp 612-dev2 released [message #7311 is a reply to message #7304] Thu, 21 December 2006 15:59 Go to previous messageGo to next message
yeohhs
Messages: 75
Registered: November 2005
Location: Malaysia
Member
Hi,

I've added "using namespace Upp;" to the project files in MyUppApp but there were several compile errors. All were C2872.

I'm compiling using MSC8 Optimal build.

To "fix" it, I have made changes to:
1. iml_source.h
Line 63:
#define IMAGE_BEGIN_DATA { static const Upp::byte data[] = {

2. topic_group.h
Line 117:
#define COMPRESSED static const Upp::byte data[] = {

The MyUppApp project now builds without any errors and runs okay. Smile

Best Regards,
Yeoh
--


Re: Upp 612-dev2 released [message #7312 is a reply to message #7310] Thu, 21 December 2006 16:12 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
Ulti wrote on Thu, 21 December 2006 09:42

Another Mingw error:
D:\UltiStudio\upp\uppsrc\CtrlCore\Win32Proc.cpp:261: error: at this point in file

thanks! Smile

in Win32proc.cpp change GetLocaleInfo(MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT), LOCALE_IDEFAULTANSICODEPAGE, b, 20);

to

::GetLocaleInfo(MAKELCID(LOWORD(GetKeyboardLayout(0)), SORT_DEFAULT),
LOCALE_IDEFAULTANSICODEPAGE, b, 20);

can solve this error,but I don't know if it is the right solution.
correction:this makes MSC71 fail,so don't do this

[Updated on: Thu, 21 December 2006 17:13]

Report message to a moderator

Re: Upp 612-dev2 released [message #7313 is a reply to message #7311] Thu, 21 December 2006 16:18 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
yeohhs wrote on Thu, 21 December 2006 09:59

Hi,

I've added "using namespace Upp;" to the project files in MyUppApp but there were several compile errors. All were C2872.

I'm compiling using MSC8 Optimal build.

To "fix" it, I have made changes to:
1. iml_source.h
Line 63:
#define IMAGE_BEGIN_DATA { static const Upp::byte data[] = {

2. topic_group.h
Line 117:
#define COMPRESSED static const Upp::byte data[] = {

The MyUppApp project now builds without any errors and runs okay. Smile

Best Regards,
Yeoh
--




aha,it works Smile
Re: Upp 612-dev2 released [message #7315 is a reply to message #7304] Thu, 21 December 2006 17:10 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
to support Mingw(gcc4.1.1)
Core.h to be changed:
from
END_UPP_NAMESPACE

#ifdef PLATFORM_WIN32
NTL_MOVEABLE(POINT)
NTL_MOVEABLE(SIZE)
NTL_MOVEABLE(RECT)
#endif

#if (defined(_DEBUG) || defined(_TEST_LEAKS)) && defined(PLATFORM_POSIX)

to
#ifdef PLATFORM_WIN32
NTL_MOVEABLE(POINT)
NTL_MOVEABLE(SIZE)
NTL_MOVEABLE(RECT)
#endif
END_UPP_NAMESPACE

#if (defined(_DEBUG) || defined(_TEST_LEAKS)) && defined(PLATFORM_POSIX)

Re: Upp 612-dev2 released [message #7319 is a reply to message #7304] Fri, 22 December 2006 00:39 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
If I decide not to use "using namespace Upp" but rather explicitly use namespace Upp I'm getting compilation error when trying to compile a simple code below.

class ufm : public Upp::TopWindow {
public:
typedef ufm CLASSNAME;

};

GUI_APP_MAIN
{
ufm().Run();
}


The errors are:

E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C2653: 'Ctrl' : is not a class or namespace name
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'InitWin32': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'coreCmdLine__': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'SplitCmdLine__': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'AppInitEnvironment__': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C2653: 'Ctrl' : is not a class or namespace name
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'CloseTopCtrls': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'UsrLog': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'DeleteUsrLog': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C2653: 'Ctrl' : is not a class or namespace name
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'ExitWin32': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'AppExit__': identifier not found, even with argument-dependent lookup
E:\home\ssg\c++\vc71\upp_app\ufm\main.cpp(63) : error C3861: 'GetExitCode': identifier not found, even with argument-dependent lookup

It would be good to support explicit usage of Upp. Defines do not belong to a namespace I believe, so all these functions and variables cannot be found.


Regards,
Novo
Re: Upp 612-dev2 released [message #7320 is a reply to message #7319] Fri, 22 December 2006 01:43 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
Novo wrote on Thu, 21 December 2006 18:39

If I decide not to use "using namespace Upp" but rather explicitly use namespace Upp I'm getting compilation error when trying to compile a simple code below.

class ufm : public Upp::TopWindow {
public:
typedef ufm CLASSNAME;

};

GUI_APP_MAIN
{
ufm().Run();
}


The errors are:



that is only apply namespace to TopWindow as I know.
Re: Upp 612-dev2 released [message #7321 is a reply to message #7320] Fri, 22 December 2006 01:48 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
summary
fixed:
====================================================
to support Mingw(gcc4.1.1)
Core.h to be changed:
from
END_UPP_NAMESPACE

#ifdef PLATFORM_WIN32
NTL_MOVEABLE(POINT)
NTL_MOVEABLE(SIZE)
NTL_MOVEABLE(RECT)
#endif

#if (defined(_DEBUG) || defined(_TEST_LEAKS)) && defined(PLATFORM_POSIX)

to
#ifdef PLATFORM_WIN32
NTL_MOVEABLE(POINT)
NTL_MOVEABLE(SIZE)
NTL_MOVEABLE(RECT)
#endif
END_UPP_NAMESPACE

#if (defined(_DEBUG) || defined(_TEST_LEAKS)) && defined(PLATFORM_POSIX)

GridCtrl's mingw support
Change

bool factory = edits[id].factory != 0;


to

bool factory = edits[id].factory;

iml errors

To "fix" it, I have made changes to:
1. iml_source.h
Line 63:
#define IMAGE_BEGIN_DATA { static const Upp::byte data[] = {

2. topic_group.h
Line 117:
#define COMPRESSED static const Upp::byte data[] = {


============================================================
don't know how to fix,need help
Another Mingw error:
In file included from D:/UltiStudio/upp/out/CtrlCore/MINGW.Debug_full.Gui\$blitz.c pp:114:
D:/UltiStudio/upp/uppsrc/Core/Lang.h: In member function `virtual LRESULT Upp::Ctrl::WindowProc(UINT, WPARAM, LPARAM)':
D:/UltiStudio/upp/uppsrc/Core/Lang.h:41: error: too many arguments to function `Upp::String Upp::GetLocaleInfoA(LCID, LCTYPE)'
D:\UltiStudio\upp\uppsrc\CtrlCore\Win32Proc.cpp:261: error: at this point in file

[Updated on: Fri, 22 December 2006 01:49]

Report message to a moderator

Re: Upp 612-dev2 released [message #7322 is a reply to message #7321] Fri, 22 December 2006 08:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Well, looks like the release was new, but not shiny Smile

Mirek
Re: Upp 612-dev2 released [message #7323 is a reply to message #7322] Fri, 22 December 2006 09:40 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

luzr wrote on Fri, 22 December 2006 02:43

Well, looks like the release was new, but not shiny Smile


Smile it should be: new, shiny visual c++ release...
I will add checking mingw comatability in installer as well as compiling examples and references.
Re: Upp 612-dev2 released [message #7324 is a reply to message #7323] Fri, 22 December 2006 10:03 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
sorry for my delay:

3togo asked me to add a configure.ac and a makefile.ac to upp so the typical linux installation "./configure && make && make install" works, but i was unable to get it running.
ANY hints are very welcome esp. about automake, but also on autoconf (eg links to good documentation/examples)

now i use the old way: two Makefiles and i get:
uppsrc/Web/socket.cpp: In member function ‘bool Upp::Socket::Data::OpenClient(const char*, int, bool, Upp::dword*, int, bool)’:
uppsrc/Web/socket.cpp:192: error: ‘::GetLastError’ has not been declared

Bas
Merry X-Mas
Re: Upp 612-dev2 released [message #7326 is a reply to message #7324] Fri, 22 December 2006 12:43 Go to previous messageGo to next message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

I recently sat down to learn autoconf, and added it to all my programs if you need help.

I used:

http://www-src.lip6.fr/homepages/Alexandre.Duret-Lutz/autoto ols.html

It was surprisingly well written.

Re: Upp 612-dev2 released [message #7327 is a reply to message #7326] Fri, 22 December 2006 13:08 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
thanks, will work throught the 557 slides Smile

Bas
Re: Upp 612-dev2 released [message #7329 is a reply to message #7327] Fri, 22 December 2006 14:52 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
finaly linux is up, too

package name changed from ultimate++ -> upp
so please run a "apt-get remove ultimate++" before installing

Bas
Re: Upp 612-dev2 released [message #7332 is a reply to message #7320] Fri, 22 December 2006 16:40 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
Ulti wrote on Fri, 22 December 2006 01:43

Novo wrote on Thu, 21 December 2006 18:39

If I decide not to use "using namespace Upp" but rather explicitly use namespace Upp I'm getting compilation error when trying to compile a simple code below.

class ufm : public Upp::TopWindow {
public:
typedef ufm CLASSNAME;

};

GUI_APP_MAIN
{
ufm().Run();
}


The errors are:



that is only apply namespace to TopWindow as I know.


Let us make it more complicated.

class ufm : public Upp::TopWindow {
public:
typedef ufm CLASSNAME;
ufm();

private:
Upp::MenuBar menu;
Upp::StatusBar status;
Upp::Splitter h;
Upp::ArrayCtrl files_left;
Upp::ArrayCtrl files_right;

Upp::EditString edit_name;
Upp::EditString edit_ext;
Upp::EditTime edit_date;
Upp::EditString edit_attr;

};

ufm::ufm()
{
// Skipped ...
}


GUI_APP_MAIN
{
ufm().Run();
}

In order to compile this program Upp must be explicitly used within all defines.

I can even volunteer to fix that ...
Re: Upp 612-dev2 released [message #7333 is a reply to message #7332] Fri, 22 December 2006 18:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Novo wrote on Fri, 22 December 2006 10:40


Upp::EditTime edit_date;
Upp::EditString edit_attr;


In order to compile this program Upp must be explicitly used within all defines.

I can even volunteer to fix that ...



I am not sure I understand your point this time...

Obviously, without the using clause, you have to qualify all symbols from the Upp namespace.

Mirek
Re: Upp 612-dev2 released [message #7337 is a reply to message #7333] Fri, 22 December 2006 22:31 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1431
Registered: December 2006
Ultimate Contributor
luzr wrote on Fri, 22 December 2006 18:04



I am not sure I understand your point this time...

Obviously, without the using clause, you have to qualify all symbols from the Upp namespace.

Mirek


Same as with STL and boost. But when I use a define from Ultimate++ without the using clause the code won't compile.

In all defines, which can be used outside of the Upp namespace, like GUI_APP_MAIN in my case all symbols must be qualified with the Upp namespace. In this case everyone will have a choice either to use the using clause or to qualify qualify all symbols from the Upp namespace.

I personally prefer the second choice because it makes code more readable especially when you use many frameworks in one project.
Re: Upp 612-dev2 released [message #7338 is a reply to message #7337] Fri, 22 December 2006 23:53 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Ah, yes, you are right. I just thought you do not like adding Upp:: before all symbols.

GUI_APP_MAIN is already fixed. The only problem is that it HAS to be in global namespace as that seems the only way to define main and WinMain...

Mirek
Re: Upp 612-dev2 released [message #7341 is a reply to message #7323] Sat, 23 December 2006 08:08 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
unodgs wrote on Fri, 22 December 2006 03:40


Smile it should be: new, shiny visual c++ release...
I will add checking mingw comatability in installer as well as compiling examples and references.



Hi,unodgs:
there another note,your GridCtrl use old format .iml file,if it is changed to new format,yeohhs's fix will help.
thank you very much. Smile
Re: Upp 612-dev2 released [message #7345 is a reply to message #7304] Sat, 23 December 2006 09:45 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1221
Registered: March 2006
Location: Italy
Senior Contributor
unodgs wrote on Thu, 21 December 2006 08:50

It took a while (I had to rewrite the installer), but here it is - new, shiny 612-dev2 Wink

Changes since last dev:

+ upp uses Upp namespace now.
+ TopWindow::FullScreen
+ GTK chameleon can now paint TabCtrl and SpinButtons
+ New Vector optimization (reduces Linux executable size by 0.8%)
+ PCRE (regular expressions) with simple wrapper in plugin
+ GridCtrl (changelog in package)
+ DateTimeCtrl is now part of CtrlLib
+ examples: HomeBudget (demonstrates GridCtrl and sqlite usage)
+ First MacOS fixes (thanks go to lundman)


Merry christmas to all Upp::users!


Hi,

a lot of new things. It's a pity I'm far from my computer with no possibility to try them.

Merry Christmas and Happy New Year from Moscow!

Luigi
Re: Upp 612-dev2 released [message #7348 is a reply to message #7341] Sat, 23 December 2006 10:22 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

Ulti wrote on Sat, 23 December 2006 02:08


Hi,unodgs:
there another note,your GridCtrl use old format .iml file,if it is changed to new format,yeohhs's fix will help.
thank you very much. Smile

Yes, this will be fixed in the next dev.
Re: Upp 612-dev2 released [message #7349 is a reply to message #7348] Sat, 23 December 2006 10:26 Go to previous messageGo to next message
Ulti is currently offline  Ulti
Messages: 108
Registered: September 2006
Experienced Member
unodgs wrote on Sat, 23 December 2006 04:22


Yes, this will be fixed in the next dev.


thanks!
Merry christmas
Re: Upp 612-dev2 released [message #7373 is a reply to message #7304] Sat, 23 December 2006 20:50 Go to previous messageGo to next message
yoco is currently offline  yoco
Messages: 25
Registered: June 2006
Location: Taiwan
Promising Member
I have no errors in compile.

But when I link, there are so many unresolved Upp::XXX functions,
It seems that, all the implements are not in the Upp namespace.
Do I miss anything? Smile
(I use MSVC7.)

Thanks alot ^_^
Re: Upp 612-dev2 released [message #7374 is a reply to message #7373] Sat, 23 December 2006 21:40 Go to previous message
yoco is currently offline  yoco
Messages: 25
Registered: June 2006
Location: Taiwan
Promising Member
yoco wrote on Sat, 23 December 2006 14:50

I have no errors in compile.

But when I link, there are so many unresolved Upp::XXX functions,
It seems that, all the implements are not in the Upp namespace.
Do I miss anything? Smile
(I use MSVC7.)

Thanks alot ^_^


I solved this problem by "Recomplie All."
It seems like a "Incremental Linker" bug of MSVC,
But I'm not sure.
Previous Topic: Upp 612-dev2 delayed...
Next Topic: U++ in 2006 and Happy new year 2007
Goto Forum:
  


Current Time: Sun May 03 18:40:52 GMT+2 2026

Total time taken to generate the page: 0.00872 seconds