[fpc-pascal] Unzip compressed files with password

2014-07-01 Thread silvioprog
Hello, I saw the TUnZipper class, but it doesn't has this feature. So, does anyone know any library that unzip compressed files with password? Thank you! -- Silvio Clécio My public projects - github.com/silvioprog ___ fpc-pascal maillist -

Re: [fpc-pascal] Unzip compressed files with password

2014-07-01 Thread silvioprog
2014-07-01 9:07 GMT-03:00 silvioprog silviop...@gmail.com: Hello, I saw the TUnZipper class, but it doesn't has this feature. So, does anyone know any library that unzip compressed files with password? Thank you! Oh, I found it: http://sourceforge.net/projects/tpabbrevia/ I'll study

Re: [fpc-pascal] shared library on arm-linux (raspberry pi)

2014-07-01 Thread Fabio Luis Girardi
Hi all!! First (tests made on ARMHF): I did tests with latest FPC, built from trunk. The trouble persists. A simple program can't load a simple shared library, both built in FPC, but my program built in FPC can load a shared library built in gcc. As Marco said, stock fpc 2.6.4 don't works on

Re: [fpc-pascal] arm-linux (raspberry pi)

2014-07-01 Thread John Lee
I've just done an apt-get nstall fpc on rpi, running wheezy/jessie - quite a lot of libs downloaded. Is there a smaller download? Seems to be ver 2.6.2. Appears to work with a quick try compiling. Have you seen any problems using it on wheezy? Can it be used to compile v2.7 on the rpi, or is

[fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Paul Breneman
Below is code from a C program (that works). From the .h files: typedef uint32_t PICO_INFO; typedef uint32_t PICO_STATUS; PREF0 PREF1 PICO_STATUS PREF2 PREF3 (ps5000aGetUnitInfo) ( int16_t handle, int8_t* string, int16_t stringLength, int16_t

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Paul Breneman
On 07/01/2014 10:59 AM, Paul Breneman wrote: Below is code from a C program (that works). From the .h files: typedef uint32_t PICO_INFO; typedef uint32_t PICO_STATUS; PREF0 PREF1 PICO_STATUS PREF2 PREF3 (ps5000aGetUnitInfo) ( int16_t handle, int8_t* string, int16_t

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Jonas Maebe
On 01/07/14 17:27, Paul Breneman wrote: Sorry, but after I sent the email above I realized that I was editing a file in the wrong folder. Free Pascal doesn't work with var on the line below: var str : Pchar; This is what works on FPC 2.6.4: function ps5000aGetUnitInfo (handle :

Re: [fpc-pascal] arm-linux (raspberry pi)

2014-07-01 Thread Fabio Luis Girardi
2014-07-01 11:26 GMT-03:00 John Lee johnel...@gmail.com: I've just done an apt-get nstall fpc on rpi, running wheezy/jessie - quite a lot of libs downloaded. Is there a smaller download? I install FPC using: sudo apt-get install fp-compiler Seems to be ver 2.6.2. Appears to work with a

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Paul Breneman
On 07/01/2014 11:53 AM, Jonas Maebe wrote: On 01/07/14 17:27, Paul Breneman wrote: Sorry, but after I sent the email above I realized that I was editing a file in the wrong folder. Free Pascal doesn't work with var on the line below: var str : Pchar; This is what works on FPC 2.6.4:

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Jonas Maebe
On 01/07/14 19:06, Paul Breneman wrote: Thanks Jonas for the help! This now works for me in FPC (MyReturnStr is PChar): Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0], StringLen, requiredSize, RInfo); But in D7 using @MyReturnStr[ 0] gives an Access violation exception

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Paul Breneman
On 07/01/2014 01:28 PM, Jonas Maebe wrote: On 01/07/14 19:06, Paul Breneman wrote: Thanks Jonas for the help! This now works for me in FPC (MyReturnStr is PChar): Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0], StringLen, requiredSize, RInfo); But in D7 using

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Jonas Maebe
On 01/07/14 19:42, Paul Breneman wrote: I'm doing the same thing in FPC and D7: StringLen := 14; MyReturnStr := 'test1234567890'; Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0], StringLen, requiredSize, RInfo); It wrong in both FPC and D7 (and it will also

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Paul Breneman
On 07/01/2014 02:58 PM, Jonas Maebe wrote: On 01/07/14 19:42, Paul Breneman wrote: I'm doing the same thing in FPC and D7: StringLen := 14; MyReturnStr := 'test1234567890'; Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0], StringLen, requiredSize, RInfo); It

Re: [fpc-pascal] DLL call works on FPC 2.6.4 but not with D7

2014-07-01 Thread Sven Barth
Am 01.07.2014 20:59 schrieb Jonas Maebe jonas.ma...@elis.ugent.be: On 01/07/14 19:42, Paul Breneman wrote: I'm doing the same thing in FPC and D7: StringLen := 14; MyReturnStr := 'test1234567890'; Status := ps5000aGetUnitInfo( ps5000a_handle, @MyReturnStr[ 0],