|
|
Home » Community » U++ community news and announcements » Upp 612-dev2 released
Upp 612-dev2 released [message #7304] |
Thu, 21 December 2006 08:50 |
|
It took a while (I had to rewrite the installer), but here it is - new, shiny 612-dev2
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 |
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 |
|
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 #7312 is a reply to message #7310] |
Thu, 21 December 2006 16:12 |
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!
|
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 #7319 is a reply to message #7304] |
Fri, 22 December 2006 00:39 |
Novo
Messages: 1371 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 #7321 is a reply to message #7320] |
Fri, 22 December 2006 01:48 |
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 #7323 is a reply to message #7322] |
Fri, 22 December 2006 09:40 |
|
luzr wrote on Fri, 22 December 2006 02:43 | Well, looks like the release was new, but not shiny
|
it should be: new, shiny visual c++ release...
I will add checking mingw comatability in installer as well as compiling examples and references.
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sat Sep 21 03:04:05 CEST 2024
Total time taken to generate the page: 0.03870 seconds
|
|
|