Re: [fpc-pascal] libusb header translation and OOP wrapper

2012-09-28 Thread Christo
On Tue, 2012-09-25 at 22:16 +0100, Henry Vermaak wrote: > On 25 September 2012 20:57, Christo wrote: > > Any ideas on how to define the calling convention in the import unit so > > that it is either stdcall or cdecl depending on the target OS? > > I've used a macro for this in the past. E.g. : >

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Sven Barth
Am 28.09.2012 11:42, schrieb Graeme Geldenhuys: On 2012-09-28 10:28, michael.vancann...@wisa.be wrote: No, it is just for the XML reader, since it uses widestrings: Ah, so it only takes affect on the WideString type, not the String type. I guess from the name 'widestring manager' I should hav

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Ludo Brands
> > No, it is just for the XML reader, since it uses widestrings: > > Ah, so it only takes affect on the WideString type, not the > String type. I guess from the name 'widestring manager' I > should have seen that relationship. :) > Using cwstring does affect some ansistring functions. It come

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:28, michael.vancann...@wisa.be wrote: > > No, it is just for the XML reader, since it uses widestrings: Ah, so it only takes affect on the WideString type, not the String type. I guess from the name 'widestring manager' I should have seen that relationship. :) Thanks Michael.

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:25, Reinier Olislagers wrote: > > Ah, Listeners thanks. Is this listener concept something that's > common to more xunit frameworks (junit... etc) or is it an fpcunit > invention? I think the idea came from DUnit, though FPCUnit was heavily based on the JUnit design. DUnit2 a

[fpc-pascal] Re: SDFDataset users!?

2012-09-28 Thread Reinier Olislagers
On 25-9-2012 13:59, Reinier Olislagers wrote: > On 25-9-2012 11:05, michael.vancanneyt-0is9kj9s...@public.gmane.org >> Well, in the not-too-far future, I'll spend time on improving the DB >> testsuite. >> > > In that not-too-far future, you might want to have a look at the > following patches ;) >

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Reinier Olislagers wrote: On 28-9-2012 10:43, Graeme Geldenhuys wrote: On 2012-09-28 09:18, Reinier Olislagers wrote: Is there existing code available for getting fpcunit test results into a database? No, but the Test Listener interface makes such an addition very eas

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: On 2012-09-28 10:01, michael.vancann...@wisa.be wrote: I'm also not sure how using cwstring unit would affect fpGUI apps that use UTF-8 inside AnsiString containers. (just like LCL does) It all depends on the XML. Sorry, I'm not very versed

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Reinier Olislagers
On 28-9-2012 10:43, Graeme Geldenhuys wrote: > On 2012-09-28 09:18, Reinier Olislagers wrote: >> >> Is there existing code available for getting fpcunit test results into a >> database? > > No, but the Test Listener interface makes such an addition very easy. > > Simply create a TDatabaseListener

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 10:01, michael.vancann...@wisa.be wrote: >> >> I'm also not sure how using cwstring unit would affect fpGUI apps that >> use UTF-8 inside AnsiString containers. (just like LCL does) > > It all depends on the XML. Sorry, I'm not very versed on WideString managers, so excuse if this

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: On 2012-09-28 09:41, michael.vancann...@wisa.be wrote: XMLRead uses it, yes. Umm, so how would that affect applications that normally use UTF-8 packed in AnsiString? Like fpGUI and LCL based applications. It depends on the encoding of the XML

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 09:41, michael.vancann...@wisa.be wrote: > > XMLRead uses it, yes. Umm, so how would that affect applications that normally use UTF-8 packed in AnsiString? Like fpGUI and LCL based applications. To give you the exact example. He has XML units he would like to unit test. He can use

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Graeme Geldenhuys
On 2012-09-28 09:18, Reinier Olislagers wrote: > > Is there existing code available for getting fpcunit test results into a > database? No, but the Test Listener interface makes such an addition very easy. Simply create a TDatabaseListener that implements the ITestListener interface. It's only 5

Re: [fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Reinier Olislagers wrote: Hi list, Is there existing code available for getting fpcunit test results into a database? Otherwise I'm thinking of writing an XML importer that gets the test results and imports them into a database... handy for regression testing, I'd think.

Re: [fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread michael . vancanneyt
On Fri, 28 Sep 2012, Graeme Geldenhuys wrote: Hi, Somebody in the fpGUI support newsgroup raised an issue when using BOM, XMLRead units under Linux. Does the use of the DOM, XMLRead and XMLWrite units in FCL (from FPC 2.6.0) require the use of cwstring under Linux? XMLRead uses it, yes. We

[fpc-pascal] Getting fpcunit test results into a database

2012-09-28 Thread Reinier Olislagers
Hi list, Is there existing code available for getting fpcunit test results into a database? Otherwise I'm thinking of writing an XML importer that gets the test results and imports them into a database... handy for regression testing, I'd think. Looking at the XML, that wouldn't be too difficult.

[fpc-pascal] DOM, XMLRead, XMLWrite - cwstring requirement

2012-09-28 Thread Graeme Geldenhuys
Hi, Somebody in the fpGUI support newsgroup raised an issue when using BOM, XMLRead units under Linux. Does the use of the DOM, XMLRead and XMLWrite units in FCL (from FPC 2.6.0) require the use of cwstring under Linux? I'm using those units in the FPTest (Free Pascal Unit Testing Framework) proj