SimDesign

SimDesign software users forum
It is currently Fri Sep 19, 2014 4:44 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Delphi XE2
PostPosted: Mon Mar 12, 2012 11:29 pm 
Offline
Junior Member

Joined: Mon Oct 11, 2010 11:05 pm
Posts: 2
Have been using NativeXML for years (great product). In particular, I use it to store all configuration settings.

However, now I need to produce cross platform apps (Win32, Win64, MacOS iOS and Android) so I need XML support for those other platforms.

Have you an XE2 specific version in the pipeline with full support across OS_X and iOS ??

Brian


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Tue Mar 13, 2012 8:21 am 
Offline
Member

Joined: Tue Jul 06, 2010 7:51 am
Posts: 14
Just add the following to the simdesign.inc and undefine the USEGRAPHICS in the NativeXml.pas. Then it should work since I don't see any platform specifics in NativeXml.

Code:
// Delphi XE2 / 16
{$ifdef VER230}
  {$define D7UP}
  {$define D10UP}
  {$define D15UP}
{$endif}


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Thu Mar 15, 2012 6:00 am 
Offline
Junior Member

Joined: Mon Oct 11, 2010 11:05 pm
Posts: 2
Checked the INC file - the change you suggested is already there.

When you set the target to OSX -it will not compile

The calls to "MultiByteToWideChar" & "WideCharToMultiByte" fail


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Wed Apr 25, 2012 2:05 pm 
Offline
Site Admin
User avatar

Joined: Tue Jan 20, 2004 3:59 pm
Posts: 1279
Location: Hellevoetsluis, Netherlands
Agreed, so you'd have to also use NativeXmlWin32Compat.pas unit. This is a unit I wrote for Linux Ubuntu. It is still a bit experimental but you can give it a test..

I don't have OSX and/or a Mac so I can't test right now.

Kind regards, Nils


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Tue May 29, 2012 2:48 pm 
Offline
Member

Joined: Tue Jan 30, 2007 1:59 pm
Posts: 12
Location: Norway
Did it work on IOS?


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Tue Jun 05, 2012 11:19 pm 
Offline
Site Admin
User avatar

Joined: Tue Jan 20, 2004 3:59 pm
Posts: 1279
Location: Hellevoetsluis, Netherlands
I do not have Delphi XE2, or iOS for that matter. So if any of the other customers would like to share their experiences with NativeXml on iOS, it would be helpful :)

Anyways, just test, and probably it may work if using UTF-8 and UTF-16 xml files only. The legacy encodings might be problematic. Also, if a compiler directive is wrong here or there, NativeXml may also not work on iOS.

Kind regards, Nils


Top
 Profile  
 
 Post subject: Re: Delphi XE2
PostPosted: Wed Jun 06, 2012 3:03 pm 
Offline
Member

Joined: Tue Jan 30, 2007 1:59 pm
Posts: 12
Location: Norway
seems to work


viewtopic.php?f=2&t=2121


Jørgen


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group