Search found 31 matches

by luccat
Fri Jun 18, 2010 1:13 pm
Forum: C++ Development
Topic: wxXml error?
Replies: 9
Views: 2412

wxXml error?

Hi, if you just need a simple, compact and human readable data interchange format take a look at JSON. It is much simplier than XML and there is also a wxWidget's implementation: wxJSON http://luccat.users.sourceforge.net/wxjson/docs/index.html The JSON syntax is like the following (much more readab...
by luccat
Wed Dec 30, 2009 3:43 pm
Forum: wxCode
Topic: [ANN] wxJSON 1.2.0 released
Replies: 0
Views: 1027

[ANN] wxJSON 1.2.0 released

Hi all, this new version is mainly a code cleanup, bug-fix, compilation's errors fix. The only significant change is that the library automatically detects if wxWidgets was built using the --enable-stl flag and conditionally compiles the hash map container so that no compile errors occur. For detail...
by luccat
Wed Dec 16, 2009 10:49 am
Forum: wxCode
Topic: [ANN] wxJSON 1.1.0 released
Replies: 6
Views: 3027

wx version:daily snapshot Dec 14. I tried to compile the sample within wxJson package,including all headers and src,using mingw3.4.5+C::B under Windows XP,both in release/debug mode,got an ICE: === Build finished: 1 errors, 103 warnings ===| Any idea? Thanks. Well, in the 'sample' subfolder there i...
by luccat
Fri Dec 11, 2009 8:59 am
Forum: wxCode
Topic: [ANN] wxJSON 1.1.0 released
Replies: 6
Views: 3027

Re: [ANN] wxJSON 1.1.0 released

Great! May I ask where is the makefile.gcc for mingw under build folder?I don't find makefile.vc /makefile.bcc as mentioned int the install.txt. Thanks for your help in advance. makefile.vc is specific for MS VC++ and makefile.bcc is specific for Borland BCC 5.5. In fact, they are missing in this r...
by luccat
Sat Nov 14, 2009 11:18 am
Forum: wxCode
Topic: [ANN] wxJSON 1.1.0 released
Replies: 6
Views: 3027

[ANN] wxJSON 1.1.0 released

Hi all, This release is a complete reorganization of the wxJSON reader and writer classes: now they only process UTF-8 encoded text as a stream. I also added a new wxJSONValue's memberfunction to get values and fixed the bugs in wxJSONValue::IsSameAs(). There is also a trick for compiling on MinGW (...
by luccat
Tue Oct 27, 2009 11:05 am
Forum: wxCode
Topic: [wxJSON 1.1] ANSI / Unicode interoperability
Replies: 0
Views: 1813

[wxJSON 1.1] ANSI / Unicode interoperability

Hi all, I am ready to upload the new file release for version 1.1 but there is still an issue in the organization of the wxJSON writer and reader. The problem is ANSI / Unicode interoperability. When I wrote version 0.3 which introduced Unicode support I tried to achieve interoperability between ANS...
by luccat
Sun Oct 18, 2009 1:55 pm
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

Hi, I have now committed in the SVN repository the version 1.1 of wxJSON. It is compatible with 1.0 except for one aspect: in ANSI builds the reader does no more store Unicode Escaped Sequences of unrepresentable characters such as for example, a greek letter in a Latin-1 environment: \u03B1 This is...
by luccat
Wed Oct 14, 2009 7:27 am
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

Hi, I have had a totally new idea for keeping track of incorrect accessed values. It is, by now, only a draft, I still have to solve some problems: the errorList itself would be a wxJSONValue structure that contains the same tree of the value it referes to. An access to a value will create a node in...
by luccat
Wed Oct 07, 2009 10:17 am
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

bool AsInt( int& i ) Hmm, this is indeed very good, and just as simple :) This will be implemented in version 1.1 Another solution would be to set a static data member to a non-NULL value every time an incorrect access is performed (for example the pointer to the offending wxJSONValue object). ...
by luccat
Wed Sep 30, 2009 1:51 pm
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

wxLogTrace changed somewhere in the trunk, after 2.9.0 was released; I think it should still be ok if WXWIN_COMPATIBILITY_2_8 will be set to 1, but just thought to let you know if you want to take a look there too, and I suppose it should work with the flag set to 0 too Thanks for the hint also hav...
by luccat
Tue Aug 04, 2009 7:57 pm
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

Well, I am now working on the wxW 2.9 port of wxJSON and I think that this is the right place to do the speed optimisation that I left for last in my future plans. So the next releases of wxJSON will be: 1.1: compatible with both wxW 2.8 and 2.9 1.2: use of STL containers 1.3: implementation of the ...
by luccat
Tue Aug 04, 2009 9:04 am
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

Hi, I will make wxJSON to compile and work with wxW 2.9 although I think that it is not wise to break the compatibility with a stable release. I read the docs for wxW 3.0 and I noticed that wxString has totally changed. By the way wxString::GetChar() is very inefficient on platforms that use UTF-8 a...
by luccat
Mon Aug 03, 2009 9:38 am
Forum: wxCode
Topic: [ANN] wxJSON new versions planned
Replies: 12
Views: 6969

[ANN] wxJSON new versions planned

Hi all, the wxJSON library is now a complete implementation of the JSON specifications but I recently received some feature requests from wxJSON users and I planned to release a few new versions of the library. The first one is a workaround to correctly build the library on MinGW. The second one is ...
by luccat
Tue Jul 07, 2009 1:01 pm
Forum: wxCode
Topic: glitch in wxJSON
Replies: 1
Views: 1214

glitch in wxJSON

Hi. I am not sure of correctly undestand what is the problem in the wxJSON library. The wxJSONReader does not expect a BOM in a UTF-8 stream. If a BOM is present, it is ignored. The wxJSONWriter does not prepend a BOM in the generated text output. This is because the BOM is usefull for UTF-16 and UT...
by luccat
Fri May 15, 2009 4:12 pm
Forum: Component Writing
Topic: [wxJSON] building errors on some platforms?
Replies: 1
Views: 1657

[wxJSON] building errors on some platforms?

Hi, the code snippset does not compile even in Borland BCC 5.5. Here is the compiler output Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland teststd.cpp: Error E2238 teststd.cpp 74: Multiple declaration for 'MyClass2Array' The offending line is the std::vector declaration. The code is su...