Re: [fpc-pascal] Timer in X11

2011-12-21 Thread michael . vancanneyt
it looks like X11 has no support for timers, so I wonder what the best approach would be to solve this. As far as I know, most toolkits do a timeout on the X11 communication handle (using select()) and this timeout is used to implement the timers. Michael

Re: [fpc-pascal] Timer in X11

2011-12-21 Thread michael . vancanneyt
#x27;t consider this very good programming practice. But presumably only if you are using a timer, in which case that's exactly what the programmer wanted ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread michael . vancanneyt
curs once when an application falls Idle. - An event which is triggered repeatedly when the application is idle. As I understand it, Delphi and Lazarus implement the former, and don't need a timeout for it. Michael.___ fpc-pascal maillist

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread michael . vancanneyt
related program, for that matter. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Timer in X11

2011-12-22 Thread michael . vancanneyt
sume CPU cycles, as indicated by others... It all depends on what the programmer needs. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Forward declarations

2011-12-22 Thread Michael Fuchs
Am 22.12.2011 21:37, schrieb Rainer Stratmann: > procedure fwproc; forward; > > procedure myprocedure; > begin > fwproc; > end; > > procedure fwproc; > begin > > end; Bad example, in this case there is no need for implementing fwp

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
g: 2.7.1 [2011/12/27] for i386 On a side note, I would like to include images in my documentation. How to do this? Is simply putting a tag enough and will these links be embedded in the chm file? Yes, an 'img' tag exists. This is documented. It does NOT us

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
ld be some text With Strings do For i:=Count-1 downto 0 do Delete(i); more text Michael. As for the img tag, thanks for that, i'll start using it. Regards, Darius On 2 jan '12, michael.vancann...@wisa.be wrote: On Mon, 2 Jan 2012, dhkblas...@zeelandnet.nl [1]wrote

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
the same directory as the .xml file is and from where the chm file is generated from. All relevant files and scripts are in SVN. CHM ? This is for Marco. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mai

Re: [fpc-pascal] Problems with fpdoc

2012-01-02 Thread michael . vancanneyt
ests with latex and html, both worked fine. What does the path of the img mean (source or destination path?) Source, obviously. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Adding code indentation without Lazarus

2012-01-02 Thread michael . vancanneyt
the code automatically? Yes. FPC comes with a tool ptop. It indents code. It is probably not as powerful as the lazarus code formatter, but it does the job. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How can I trap signals

2012-01-03 Thread michael . vancanneyt
On Tue, 3 Jan 2012, ik wrote: Hello, I wish to trap two signals in Linux (ABRT and HUP), how can I do that ? Install a signal handler. See e.g. http://www.freepascal.org/docs-html/rtl/baseunix/fpsigaction.html For an example. Michael. ___ fpc

Re: [fpc-pascal] Problems with fpdoc

2012-01-03 Thread michael . vancanneyt
/core/titokenlibrary/index.html I only use fpdoc tags, never HTML tags in the help contents. Thank you, Graeme. Darius just has some wrong value in the IMG tag's file attribute. Correcting that, it works fine with HTML. There may be still a bug in CHM, Marco will have to in

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread michael . vancanneyt
ompact. I will not discuss taste, but what if there are references in the short description ? You can't nicely handle that in comments, so I think this should be an option as well: --document-arguments-inline Michael. ___ fpc-pasca

Re: [fpc-pascal] Group arguments from overloaded functions in fpdoc

2012-01-06 Thread michael . vancanneyt
e step forward, IMHO, and sufficient to cover most needs. The function description can be used to elaborate the subtle differences, if the need is there. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPCUnit without Lazarus

2012-01-09 Thread michael . vancanneyt
On Mon, 9 Jan 2012, Graeme Geldenhuys wrote: On 8 January 2012 17:23, Michael Van Canneyt wrote: After your previous mails about this, I have discussed this with Vincent Snijders, the author of the console runner class. The console runner class of the LCL does not really have any

Re: [fpc-pascal] sorting and merging array of records

2012-01-10 Thread michael . vancanneyt
top of them, I resorted to using the old TP/BP compatible object model with TSortedCollection (as provided in unit objects). The classes unit also has a TCollection, which can be sorted on any field of the collection items ? Michael. ___ fpc-pascal maill

Re: [fpc-pascal] Redis client for FPC

2012-01-11 Thread michael . vancanneyt
bular format, so not key=value. The fact that each value in a column has the same type and/or length is also a must. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
overwrites the memory behind. After adding some dummy bytes at the end it worked nice. Is there a better way? Yes, convert the mysql 5.5. headers. Or adapt the 5.1 headers to match the 5.5 specs. That is how we bring it up-to-date whenever a new MySQL version appears. Michael

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
as soon as I have received the upgraded headers. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MySQL5

2012-01-17 Thread michael . vancanneyt
are now working on these forks, I think the chances are high that they use the same mechanisms... So, use a more stable DB. If you need open source: Postgres or Firebird... Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread michael . vancanneyt
cups installed. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] memory corruption

2012-01-25 Thread Michael Müller
Am 26.01.2012 um 03:50 schrieb ik: > Hello, > > While testing my following code: > https://github.com/ik5/redis_client.fpc/blob/master/tests/test_parser.lpr#L166 > > When I'm executing the code on the second item (that is suppose to be null in > the protocol -> '$-1#13#10'), > the program cras

Re: [fpc-pascal] fpdoc links and short description

2012-01-27 Thread michael . vancanneyt
a bug or should it work like this? Most likely a bug, please report it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] libQT4Pas - Why it is needed?

2012-01-30 Thread michael . vancanneyt
s it's own (incompatible) format, and G++ changes it format regularly, so I was given to understand. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
Downside is that the 'read' operation will not be able to read the text form. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-03 Thread michael . vancanneyt
convinced that this kind of call is needed. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC docs wrong for TStream.WriteBuffer()

2012-02-06 Thread michael . vancanneyt
er() does, not ReadBuffer()?? The explanation is correct. ReadBuffer actually reads data from the stream to the buffer. Just like read. Just like you read from a file. Data goes from the file to your variable. Michael. ___ fpc-pascal maillist - f

Re: [fpc-pascal] FPC docs wrong for TStream.WriteBuffer()

2012-02-06 Thread michael . vancanneyt
or. The correct short description for TStream.WriteBuffer should be something like... "Writes data from the buffer to the stream" ...though the Kylix/Delphi short description is much better and clearer. :) Correct. I've adapted the text. Rev 889. Michael. _

Re: [fpc-pascal] Too tired? Forcedirectories does not seem to work

2012-02-07 Thread michael . vancanneyt
mpleted to absolute paths etc. I will look into improving the documentation. The implementation has been improved over the years. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread michael . vancanneyt
faster than any tool I've seen. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread michael . vancanneyt
oc editors produce :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to detect an any property change in object?

2012-02-08 Thread michael . vancanneyt
ty? Not as part of the language or API. You must use setters. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Problems with moving/renaming file using sysutils.renamefile

2012-02-10 Thread michael . vancanneyt
operly" moving files in FPC that also moves between partitions, if one exists? None exists. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: TLinkedList

2012-02-15 Thread michael . vancanneyt
cs? That wouldn't change that much... the performance of specialized generics isn't that different from "normal" code. I tested that. It's about 10% slower. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] Re: TLinkedList

2012-02-15 Thread michael . vancanneyt
cal. If it is not used inside the compiler it is unoptimized :-) Maybe redo cclasses with generics? That wouldn't change that much... the performance of specialized generics isn't that different from "normal" code. I tested that. It's about 10% slower. Compile t

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
wnto 1 do if s[i] = '/' then begin ... end else if s[i] = ':' then break else ... Why? Probably some misguided attempt at handling file:///c:/something You can remove that code. Michael. ___

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread michael . vancanneyt
king about it, maybe it was designed to also handle mailto:m...@this.spot That should be checked. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] dbus in Pascal

2012-02-23 Thread michael . vancanneyt
On Thu, 23 Feb 2012, Felipe Monteiro de Carvalho wrote: On Thu, Feb 23, 2012 at 8:42 AM, Michael Van Canneyt wrote: I have written dbus classes/components. I never committed them, but they work, and if you want I can send them to you. If you think they're good enough, we can include th

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread michael . vancanneyt
;case sensitive' option for filename comparisions. You may have problems, because it is set to True by default on Linux/Unix See: http://www.freepascal.org/docs-html/rtl/system/filenamecasesensitive.html You can set its value, though, it is a type

Re: [fpc-pascal] fpweb and security

2012-02-27 Thread michael . vancanneyt
What other if any security tools does it have ? None. It is a HTTP handling framework. Other than Basic Authentication on the web server level, HTTP does not offer security mechanisms, and therefor none are implemented in FPweb either. Michael. ___

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread michael . vancanneyt
://svn.freepascal.org/svn/fpcdocs/. One more thing is there some other page where the commit messages for the files are noted? I can only see plain text. No. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Where and how is the FPC documentation created?

2012-02-29 Thread michael . vancanneyt
few people and do you upload it for general viewing only when it is ready? In a nutshell is it possible to non contributors to view the changes as they are happening? Everything is in subversion, the fpcdocs repository. Michael. ___ fpc-pascal maillist

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread michael . vancanneyt
On Thu, 1 Mar 2012, Frank Church wrote: On 29 February 2012 19:52, Michael Van Canneyt wrote: On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-**0is9kj9s...@public.gmane.orgwrote: On Wed, 29 Feb 2012, Frank Church wrote: Another question, are

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread michael . vancanneyt
On Thu, 1 Mar 2012, Reinier Olislagers wrote: On 29-2-2012 20:52, Michael Van Canneyt wrote: On Wed, 29 Feb 2012, Reinier Olislagers wrote: On 29-2-2012 17:07, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: On Wed, 29 Feb 2012, Frank Church wrote: Another question, are you and

Re: [fpc-pascal] Re: Where and how is the FPC documentation created?

2012-03-01 Thread michael . vancanneyt
don't use chm, but latex. I suppose the xml->html converter is more forgiving about mistakes in your XML; maybe it takes some shortcuts. I would have to investigate. It's something to note, in each case. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Variant vs Pointer

2012-03-02 Thread michael . vancanneyt
Variant have very cost. It has a cost. The reason for using a buffer in tdataset is that a record's data normally is located in one continuous buffer, from which a value is picked from the right spot (including strings) You can't have that with variants

Re: [fpc-pascal] Trim(): incompatibility with Delphi

2012-03-06 Thread michael . vancanneyt
Ord(' '), and thus should behave the same as Delphi. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-06 Thread michael . vancanneyt
add an entry in the bugtracker. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Currency and ABS(-674.59)

2012-03-06 Thread michael . vancanneyt
g a ABS(Currency) seems like a reasonable request. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Trim(): incompatibility with Delphi

2012-03-06 Thread michael . vancanneyt
On Wed, 7 Mar 2012, Graeme Geldenhuys wrote: On 6 March 2012 18:12, Bernd wrote: The documentation is incorrect. It says: As usual, please file a 'FPC >> Docs' bug report so the issue doesn't get forgotten. It should be auto-assigned to Michael van Canneyt. Supp

Re: [fpc-pascal] fpWeb: Error when trying to call a module without an action

2012-03-09 Thread michael . vancanneyt
dditional property and patch. This is planned. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpWeb: Error when trying to call a module without an action

2012-03-10 Thread michael . vancanneyt
the new property is currently 'False', which is backwards compatible. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: How to handle SIGPIPE

2012-03-20 Thread michael . vancanneyt
also added this to my program, is that correct? At first sight: yes. Michael. var NewSigRecSigActionRec; res:Integer; initialization with NewSigRec do begin Integer(@Sa_Handler):=SIG_IGN; // ignore signal Sa_Mask[0]:=0; Sa_Flags:=0; end; res:=fpsigaction(SIGPIPE,@NewS

Re: [fpc-pascal] FPWebModule: BeforeResponse event?

2012-03-26 Thread michael . vancanneyt
webactions. The descendants either implement webactions, or override getcontent. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread michael . vancanneyt
variable was created by your installer. To check this, the command window can be used. The RTL of Free Pascal just calls the Windows API to get the environment variable. No magic is performed. Michael.___ fpc-pascal maillist - fpc-pascal@lists

Re: [fpc-pascal] Re: Fileread function (leledumbo)

2012-04-02 Thread michael . vancanneyt
correct?: FileWrite(Arch,b,40); // Write 40 bytes FileRead(Arch,b,40); //Read 40 bytes This is not possible. or, is this correct?: FileWrite(Arch,b,40); // Write 40 bytes Fileseek(Arch,0,fsFromBeginning)); //Move to begining FileRead(Arch,b,40); //Read 40 bytes This is correct. Michael

[fpc-pascal] Re: [Lazarus] Library with XMLHttpRequest functionality?

2012-04-02 Thread michael . vancanneyt
On Tue, 3 Apr 2012, Frank Church wrote: Is there some library in FPC/Lazarus which implements XMLHTTPRequest functionality? XMLHTTPRequest is just a regular HTTP request. You can use the TFPHTTPClient component for it. Michael. ___ fpc-pascal

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
is not. Check the error log of apache. It will contain the error output of the CGI script. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
code. Better yet, you can test CGI programs with the testcgiapp program that is located in the fcl-web sources. developed specially to test such things. Michael. Leonardo M. Ramé http://leonardorame.blogspot.com From: "michael.vancann...@wisa.be" To: F

Re: [fpc-pascal] Re: CGI under Linux using FCL-Web

2012-04-04 Thread michael . vancanneyt
extra step under Linux)? You need to fill DataModuleRequest with code; It should put something in response, and then call Response.SendResponse. If you don't, nothing will happen. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] XML parser

2012-04-06 Thread michael . vancanneyt
hecks and finally it stopped working completely. Not a good parser! There are some other choices like SimpleXML. Should I use that? You can try OpenXML ? Delphi's XML parser can use it. It can also use Xerxes, if I'm correct. Michael.___ fpc-

Re: [fpc-pascal] XML parser

2012-04-07 Thread Michael Schneider
Am Friday 06 April 2012 08:38:24 schrieb Juha Manninen: > Hi > > I have a new job. > Now I am looking for a proper XML parser for Delphi, for big XML files. > The default Delphi parser, using MS DOM, chokes badly. 4 GB memory is not > enough for it. > > Question: > Does FCL-XML work with a new Unic

Re: [fpc-pascal] SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread michael . vancanneyt
would be used? stIndexes: get a list of indexes from a table. stPRocedureParams: get the parameters of a stored procedure stPackages: list packages (Oracle and Firebird) What happens e.g. with indexes - that IIRC can have unique names per database (Firebird,...) or per table (MS SQL Server,.

Re: [fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-17 Thread michael . vancanneyt
e kind of standard result set that the MSSQL Connector does not follow as it returns only a single name column. I'll update the mssqlconn connector when I get to it. Is there any further documentation on the required output, e.g. the table_type? recno presumably is unique id, catalog_name, schema_name are presumably ISO catalog/schema, table_name is the name of the table. Presumably, yes. Joost should be able to answer these questions in more detail. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: SQLDB GetSchemaInfoSQL for indexes etc?

2012-04-19 Thread michael . vancanneyt
(refer to column names being similar or the same as information_schema in SQL ISO standard, but has deviations). It might be better to put this in a README file in the sqldb directory. Cluttering the source with documentation is not done. (well, not in FPC) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] How to run FPC 2.x on QNX

2006-02-20 Thread Michael Müller
e CC me in your anwser. Regards Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Compiling a unit loops infinitely

2006-03-21 Thread Michael Preslar
-FEout.w32 -FUlib.w32 -XX -Xs -Xt -WC -OG -Sd -Twin32 ppc386 version: Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Compiling on win32 for target win32 Any help would be appreciated.. -- Michael ___ fpc-pascal maillist - fpc-pascal@lis

[fpc-pascal] Is somebody working on making jcl work again with fpc (on linux)

2006-04-18 Thread Michael Ring
already has been done before ;-) Thanks, Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is somebody working on making jcl work again with fpc (on linux)

2006-04-18 Thread Michael Ring
g module, stopping JclWideStrings.pas(2029) Fatal: There were 1 errors compiling module, stopping JclWideStrings.pas(950,13) Error: Identifier not found "CompareString" Some of those are easy to fix, the assembler errors in JclLogic.pas give me the creeps because my last lines of a

Re: [fpc-pascal] Is somebody working on making jcl work again with fpc (on linux)

2006-04-18 Thread Michael Ring
JclLogic.pas(1130,19) Error: Asm: [bts mem32,mem32] invalid combination of opcode and operands JclLogic.pas(1193,19) Error: Asm: [bt mem32,mem32] invalid combination of opcode and operands JclLogic.pas(1295,19) Error: Asm: [btc mem32,mem32] invalid combination of opcode and operands JclLogic.pas

[fpc-pascal] Porting jcl to fpc on linux : Status and some questions

2006-04-23 Thread Michael Ring
Error: Call by var parameters have to match exactly: Got "TRTLCriticalSection" expected "pthread_mutex_t" How can I find out what is going wrong here? Thanks in advance, Michael ___ fpc-pascal maillist - f

Re: [fpc-pascal] const parameter writeable

2006-04-30 Thread Michael Müller
iler handles following parameter attributes: - 'var': call by reference => gives pointers, content writable - 'const': gives pointer, content read-only - '': call by value => creates a local copy of the data, content is los

Re: [fpc-pascal] const parameter writeable

2006-05-01 Thread Michael Müller
lly) uses the pointer. But in this case you will get an compiler error because you can't change a constant value. It seemed that I didn't get the point from your original mail: Name the procedure CHANGERec1 and change a value but declare the parameter as constant. > Otherwise, I d

[fpc-pascal] Constant object

2006-05-01 Thread Michael Müller
How can I declare a constant object? var MyTest: TObject; begin MyTest := TObject.Create; end. works (for sure). How can I declare 'const'? Thanks Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

[fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
nux' unit], and os2, I'm converting LordCfg to a native binary as well, and need the savescreen/restorescreen for the eyecandy part of the program) -- Michael Preslar Landline: (402) 614-3551 Cell: (402) 990-8001 ___ fpc-pasca

RE: [fpc-pascal] Cross Platform Save/Restore Screen

2006-06-20 Thread Michael Preslar
Thanks to all for the pointers. The FPC IDE source is definitly useful. Will have to play with that and see what I can come up with.. Thanks again! -- Michael Preslar Landline: (402) 614-3551 Cell: (402) 990-8001 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: [fpc-pascal] RS232 isr

2006-07-02 Thread Michael Preslar
> Has someone used Elecom? Could a real-mode ISR be used? I don't know anything about real mode.. But a good example of EleCom's usage can be found in MannDoor.. Available from http://www.randm.ca Of course, the EleBBS source makes heavy use of EleCom as well, but I cant find the download link to

[fpc-pascal] Blackberry

2006-07-05 Thread Michael Preslar
A client of mine is wanting me to port some of our software to the Blackberry handheld. Being that its Pascal code, I'd prefer sticking to a Pascal compiler.. And since FPC is seriously cross platform, I have to ask: Are there any plans, or work towards, porting FPC to the Blackberry? -- Mi

Re: [fpc-pascal] Blackberry

2006-07-05 Thread Michael Preslar
http://en.wikipedia.org/wiki/BlackBerry#Operating_system http://en.wikipedia.org/wiki/BlackBerry#Hardware A client of mine is wanting me to port some of our software to the Blackberry handheld. Being that its Pascal code, I'd prefer sticking to ... Another option is to use Midlet Pasca

[fpc-pascal] Porting TP ASM to FPC ASM

2006-08-21 Thread Michael Preslar
one could offer to point me in the right direction would be greatly appreciated.. -- Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Porting TP ASM to FPC ASM

2006-08-22 Thread Michael Preslar
it) {$inline on} ? Never heard of this one.. What's it do? -- Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] serial.pp - I can't talk to modem

2008-01-03 Thread Michael Müller
, string[1], Length(string)); end; This s[1] vs. s issue is popular with blockread/write too. Regards Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Michael Fuchs
Vinzent Hoefler schrieb: I think more interesting are dots in unit name for making better namespaces. Actually, I'm thinking "child units". You mean like in Ada? Yes, this would be great. Are there any plans to implement this in future versions? Micha

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Michael Fuchs
Bee schrieb: Why cant FPC use unit that has (some) dot(s) within the file name? Can FPC support it in the next release (2.2.2)? I think more interesting are dots in unit name for making better namespaces. If I have a class called TSpecialButton, I want a unit name like "Michael.GUI.Buttons.TS

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Michael Fuchs
Michael Van Canneyt schrieb: unit Blah; Namespace MyAPI.Blah; And how will you know which namespace is in what unit (or file) ? You then need a second structure mapping namespaces on filenames, making it slower, bulkier and error prone. The cure is worse than the disease, IMHO. You are

Re: [fpc-pascal] dot within unit file name

2008-01-18 Thread Michael Fuchs
Matt Emson schrieb: Turning it on its head - file names should have nothing to do with unit names. The unit lives in a namespace, The namespace directive gives the path to the unit. so it would be: unit Blah; namespace MyAPI and uses MyAPI.Blah; But how can fpc find the unit which contai

Re: [fpc-pascal] dot within unit file name

2008-01-19 Thread Michael Fuchs
Marco van de Voort schrieb: As far as I can see this is no real advantage, except allowing dots in unitnames. That is what I want. :-) Ok, the better way are child units, but the dots would be a nice feature. g Micha ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal]Graphics woes

2003-01-27 Thread Michael . VanCanneyt
On Mon, 27 Jan 2003, John Coppens wrote: > On Mon, 27 Jan 2003 14:19:56 +0100 (W. Europe Standard Time) > Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > > > > > > On Sat, 25 Jan 2003, John Coppens wrote: > > > > > Hi all... > > >

Re: [fpc-pascal]graph unit and the mouse

2003-02-10 Thread Michael . VanCanneyt
s? The best way to go about this is not to use the graph unit. The graph unit is provided for TP compatibility, but modern-day GUI systems do not work with the same paradigm. I suggest you look into using GTK or so. It's relatively cross-platform as well, and is quite well supported by FPC. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]CompareStr

2003-02-15 Thread Michael . VanCanneyt
at's all for THAT bug. > I have done this and run make (/usr/local/..rtl/ under Linux) but: > > CompareStr('hello', 'hello wrld') still gives 0. > > What am I missing here? The official 1.0.6 had this bug. It's fixed now in the latest snapshots, as conf

Re: [fpc-pascal]CompareStr

2003-02-15 Thread Michael . VanCanneyt
still gives 0. > >> > >> What am I missing here? > > > >The official 1.0.6 had this bug. It's fixed now in the latest snapshots, > >as confirmed by the original poster. > Well. But, what I want to do is just to correct this bug and st

Re: [fpc-pascal]use of c++ libraries

2003-02-19 Thread Michael . VanCanneyt
ib. > How far is this support by now? Does the cvs version have this feature > (if yes when will be the release of a stable version )? Or are there any > alternatives (instead of re-implenting this lib in pascal)? Write a small C wrapper which you then call fr

Re: [fpc-pascal]please reply immediately

2003-03-08 Thread Michael Knapp
Abdulahi Mohammed wrote: Abdulahi Mohammed InterGlobe bank plc. lagos, Nigeria [EMAIL PROTECTED] tel: 234 803 3061041 This is a so-called "nigerian advance fee scam" - email DO NOT REPLY TO THIS E-MAIL if you want, you can loose thousands of euros or get killed if you go to nigeri

Re: [fpc-pascal]FPC for a middleware application

2003-03-13 Thread Michael . VanCanneyt
d for 3 tier programming. In fact he uses it for exactly that. (mail [EMAIL PROTECTED]) Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]reading a unix socket ? - this time without html

2003-03-20 Thread Michael . VanCanneyt
27; unit gives you everyting you need. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal]Warning: TStrings.IndexOf() behaviour changed.

2003-05-30 Thread Michael . VanCanneyt
warned ! :) Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]sockets (a beginer's question) (client-server)

2003-06-10 Thread Michael . VanCanneyt
definition... ? Select works on a longint (file descriptor) or on a text file. What else do you need? Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread Michael . VanCanneyt
the correct version of mysql. Please check what the mysql_version unit reports as a version, and what the version is of the installed mysql. Michael. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal]Error compiling testdb.pp example (mysql)

2003-06-14 Thread Michael . VanCanneyt
s not the correct version of mysql. Please check what the mysql_version > > unit reports as a version, and what the version is of the installed mysql. > > How on earth do I do that :P ? Simple: program ver; uses mysql_version; begin Writeln(MYSQL_SERVER_VERSION); end.

<    1   2   3   4   5   6   7   8   9   10   >