Re: [fpc-pascal] getmem

2011-05-26 Thread Luis Fernando Del Aguila Mejía
Thanks. El 26/05/2011 06:15 a.m., Felipe Monteiro de Carvalho escribió: On Wed, May 25, 2011 at 7:58 PM, Luis Fernando Del Aguila Mejía wrote: a: = $ ABFE5689 / / Little endian $ 8956FEAB, it is ok Writeln (Hi (a)) / / Show $ ABFE, it is ok Writeln (Lo (a)) / / Show $ 5689, it is ok In a Bi

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread Takashi Ishikawa
Thanks for checking code. If you compile with the proper HTTPD directory (httpd22 in this case), Yes, I used httpd22, too. httpd20 and httpd13 was deleted. No error message in the apache error.log? Apache always says something when the startup is not successful. Apache doesn't say any errors

Re: [fpc-pascal] FillWord with dynamics array.

2011-05-26 Thread Luis Fernando Del Aguila Mejía
Thanks. Gracias. El 26/05/2011 05:01 p.m., Jonas Maebe escribió: On 26 May 2011, at 23:18, Luis Fernando Del Aguila Mejía wrote: How fill of the same value a dynamic array? {$codepage utf8} Var A,B:array of word; i:integer; Begin SetLength(A,10); SetLength(B,10); FillWord(A[0],2*

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread ABorka
.. >The error that exists in the ticket is not displayed. Seemingly, start > of httpd seems to success. However, the process terminate immediately. > > Is there another possible cause? > > Takashi If you compile with the proper HTTPD directory (httpd22 in this case), it should work. No error

[fpc-pascal] Re: [Lazarus] OPC-DA support

2011-05-26 Thread fluisgira...@gmail.com
Hi Mr. Soricetti! Yes, OPC-DA uses DCOM, that only works on Windows. But the proposal of JInterop project is provide DCOM layer independently of OS while the project OpenSCADA.Utgard, that uses JInterop, provide the OPC-DA functionality on others OS than Windows. The PascaSCADA project provides d

Re: [fpc-pascal] FillWord with dynamics array.

2011-05-26 Thread Jonas Maebe
On 26 May 2011, at 23:18, Luis Fernando Del Aguila Mejía wrote: > How fill of the same value a dynamic array? > > {$codepage utf8} > Var A,B:array of word; > i:integer; > Begin > SetLength(A,10); > SetLength(B,10); > > FillWord(A[0],2*10,0); //when value diferent to zero, no runtime er

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread Takashi Ishikawa
Thanks for telling me a ticket. In fact, I had already read the code of 'fpapache' unit. According to the patch of ticket, registration of the hook seems to have been fixed. By the way, in the test code does not use TCustomApacheApplication. The code which register hook is also written.

[fpc-pascal] FillWord with dynamics array.

2011-05-26 Thread Luis Fernando Del Aguila Mejía
How fill of the same value a dynamic array? {$codepage utf8} Var A,B:array of word; i:integer; Begin SetLength(A,10); SetLength(B,10); FillWord(A[0],2*10,0); //when value diferent to zero, no runtime error FillWord(B[0],2*10,0); for i:=0 to 9 do Writeln(i,A[i]:3,B[i]:3); End.

Re: [fpc-pascal] getmem

2011-05-26 Thread Luis Fernando Del Aguila Mejía
El 26/05/2011 06:15 a.m., Felipe Monteiro de Carvalho escribió: thanks On Wed, May 25, 2011 at 7:58 PM, Luis Fernando Del Aguila Mejía wrote: a: = $ ABFE5689 / / Little endian $ 8956FEAB, it is ok Writeln (Hi (a)) / / Show $ ABFE, it is ok Writeln (Lo (a)) / / Show $ 5689, it is ok In a Bi

Re: [fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread ABorka
On 5/26/2011 13:36, Takashi Ishikawa wrote: Hello, all I'm writing apache module with fpc. When I compile my program on fpc 2.4.4, Apache terminate immediately. But on fpc 2.2.4, Apache and my module will work fine. Code is compiled with no problem. Apache can load module. But the running has

[fpc-pascal] Apache module with fpc 2.4.x on Apache 2.2.x (64bit)

2011-05-26 Thread Takashi Ishikawa
Hello, all I'm writing apache module with fpc. When I compile my program on fpc 2.4.4, Apache terminate immediately. But on fpc 2.2.4, Apache and my module will work fine. Code is compiled with no problem. Apache can load module. But the running has problem. Is there anyone who running a

Re: [fpc-pascal] Free Pascal 2.4.4 available

2011-05-26 Thread Vladimir Zhirov
Marco van de Voort wrote: > Fixed, and some other details as well. Sorry, I still see "Version 2.4.2 is the latest stable version the Free Pascal." (BTW, it seems "of" is also missing after "version"). I tried clearing the cache and viewing the page in two different browsers, with no luck. Co

Re: [fpc-pascal] Free Pascal 2.4.4 available

2011-05-26 Thread Marco van de Voort
In our previous episode, Vladimir Zhirov said: > > The FPC 2.4.4 release is available from our ftp-servers and > > sourceforge. > > ... > > Good news, thanks. > > http://freepascal.org/ still needs a minor fix: 2.4.2 should be > changed to 2.4.4 in the "Current Version" section. Fixed, and some

RE : RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for usinganactivex

2011-05-26 Thread Ludo Brands
GetActiveOleObject raises EOleSysError if it fails. -Message d'origine- De : fpc-pascal-boun...@lists.freepascal.org [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de Roberto Padovani Envoyé : jeudi 26 mai 2011 17:32 À : FPC-Pascal users discussions Objet : Re: RE : RE : RE :

Re: RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using anactivex

2011-05-26 Thread Roberto Padovani
Wow, thanks again for the explanation and the example! I'm working on thatand it starts beating By the way, after this: FDevice := GetActiveOleObject(OLE_OBJECT_NAME); how can i test that everything is ok and FDevice is valid ? something like: ok := FDevice <> nil; Roberto 2011/5/26 L

Re: [fpc-pascal] Free Pascal 2.4.4 available

2011-05-26 Thread Vladimir Zhirov
Marco van de Voort wrote: > The FPC 2.4.4 release is available from our ftp-servers and > sourceforge. > ... Good news, thanks. http://freepascal.org/ still needs a minor fix: 2.4.2 should be changed to 2.4.4 in the "Current Version" section. ___ fpc-p

[fpc-pascal] OPC-DA support

2011-05-26 Thread fluisgira...@gmail.com
I don't know if here is the right place to request this, but... sorry if I'm wrong. I'm requesting help to support OPC-DA on PascalSCADA. As the target of PascalSCADA is keep the support to multiples platforms (using Lazarus and FPC), I'm thinking to convert the libraries JInterop and Utgard (that

RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using anactivex

2011-05-26 Thread Ludo Brands
Attached a small lazarus demo project that implements the EventSink unit. It is based on the EventSink unit in the article and adapted for fpc. The demo launches Msword and connects to the ApplicationEvents interface {000209F7---C000-0046}. When you create a new document, or change

[fpc-pascal] TProcess InheritHandles has no effect

2011-05-26 Thread Luca Olivetti
According to the documentation InheritHandles only works in windows. However the windows implementation of TProcess.Execute has in the first line FInheritHandles:=true so it doesn't work even under windows. fpc 2.4.2, but I checked in svn and it's the same. Bye -- Luca

Re: [fpc-pascal] getmem

2011-05-26 Thread Felipe Monteiro de Carvalho
On Wed, May 25, 2011 at 7:58 PM, Luis Fernando Del Aguila Mejía wrote: > a: = $ ABFE5689 / / Little endian $ 8956FEAB, it is ok > Writeln (Hi (a)) / / Show $ ABFE, it is ok > Writeln (Lo (a)) / / Show $ 5689, it is ok > > In a Big Endian computer. What shows Hi and Lo? They show same. Language c

Re: [fpc-pascal] Examine methods with TypeInfo

2011-05-26 Thread Michael Fuchs
Am 26.05.2011 12:03, schrieb Jonas Maebe: I know how to find published properties with TypeInfo, but how can I find methods? This test checks that functionality: http://svn.freepascal.org/svn/fpc/trunk/tests/webtbs/tw12038.pp Sorry, maybe I am to stupid, but if I understand this test it only

Re: [fpc-pascal] Examine methods with TypeInfo

2011-05-26 Thread Jonas Maebe
On 26 May 2011, at 11:43, Michael Fuchs wrote: I know how to find published properties with TypeInfo, but how can I find methods? This test checks that functionality: http://svn.freepascal.org/svn/fpc/trunk/tests/webtbs/tw12038.pp Also take into account http://wiki.freepascal.org/User_Chan

[fpc-pascal] Examine methods with TypeInfo

2011-05-26 Thread Michael Fuchs
Hello, I know how to find published properties with TypeInfo, but how can I find methods? type MyClass = class(TObject) published function Function1(APara: String): LongInt; function Function2(APara: String): Boolean; function Function2(APara: Integer): LongInt; end;

RE : RE : RE : RE : RE : RE : RE : [fpc-pascal] support for using anactivex

2011-05-26 Thread Ludo Brands
The late binding method is more robust against interface changes than early binding. Example: changing dispids won't affect late binding. Once a com object is deployed, normally interfaces aren't modified (other than adding new methods with new dispids) but new interfaces are added. Reason why ther