Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Ewald
return value of LoadLibrary has the same width). In your example you used an integer. Is sizeof(Integer) = sizeof(Pointer) of your system? If for example, you are missing the upper four bytes of the pointer, the above message makes sense. -- Ewald

Re: [fpc-pascal] Mangle name in fpc-FreeBSD ?

2016-03-20 Thread Ewald
he case, then you should probably report a bug. The man page of at least linux and freeBSD indicate that it should be a pointer. However, I would like to note that on linux, using revision 32828, TLibHandle is defined as a ptrint, which is correct. -- Ewald

Re: [fpc-pascal] A better way?

2016-04-14 Thread Ewald
e there’s no obvious name to use for the file now. Mutually exclusive classes are mutually exclusive to classes which have dependencies on one another ;-) Or am I missing something? -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepas

Re: [fpc-pascal] GZip - Stream decompress only in memory

2016-09-04 Thread Ewald
mpressStream(InStream: TStream; OutStream: TStream): Integer; function ExtractStream(InStream: TStream; OutStream: TStream): Integer; I think this is what you are looking for. I don't know about file headers. At least it would form a good starting point. Good

Re: [fpc-pascal] Incorrect Process startup

2016-11-07 Thread Ewald
tps://linux.die.net/man/2/fork https://linux.die.net/man/3/exec > I have found through experimenting: > > a pause of 100ms after running the process will fix 80% of cases. Probably because the child has exec'ed by this time, if I had to guess. -- Ewald __

[fpc-pascal] Docs: Type A = Integer?

2016-11-13 Thread Ewald
Hello, Section 1.2.40 of Programmers guide (http://www.freepascal.org/docs-html/prog/progsu40.html#x47-460001.2.40) says, somewhere in the middle: Type A = Integer; Is it supposed to be there? If so, what is it supposed to mean? -- Ewald

Re: [fpc-pascal] Docs: Type A = Integer?

2016-11-14 Thread Ewald
On 13/11/16 23:33, Mattias Gaertner wrote: > Maybe this helps: > http://www.freepascal.org/docs-html/current/ref/refse19.html Close, yet presence of that particular line in the section on the include directive is, at least for me, not yet unraveled ;-) --

Re: [fpc-pascal] Docs: Type A = Integer?

2016-11-14 Thread Ewald
page is >> talking about include directive and that type definition is not >> related in >> anyway with paragraphs below or above it. > > Indeed, in SVN it is no longer there. Ah, ok. So in the next release that issue will be fixed in the online version as well then.

Re: [fpc-pascal] Correct syntax for initialized constants/variables

2017-04-27 Thread Ewald
;), (a: 17;) ); Note: this is written from memory, syntax might differ a little (but the error messages from the compiler should help you out in that case). -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.free

Re: [fpc-pascal] List pre-defined defines

2017-05-17 Thread Ewald
On 16/05/17 23:53, Mattias Gaertner wrote: > touch mytest > fpc -vc mytest Perhaps a one-liner: fpc -vc /dev/null ? Saves one the need to create a dummy file and remove it afterward ;-) -- Ewald ___ fpc-pascal maillist - fpc-

Re: [fpc-pascal] [FPC-Pascal] FPC Graphics options?

2017-05-23 Thread Ewald
quot; for a list of other related switches. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] named parameter

2017-05-28 Thread Ewald
; > the first two parameters are mandatory, the third is optional. > Calls to P with 2 and 3 parameters are both valid. You realize you can already do this, right? See https://www.freepascal.org/docs-html/ref/refsu64.html#x176-19800014.4.1 -- Ewald ___

Re: [fpc-pascal] Convert to int64 note

2017-07-14 Thread Ewald
ow what the case is there. Mostly I use the smaller types for a variety of very basic range limitations: when I declare something as a byte, its value can never be larger than 255, which can come in handy at times. Think about a lookuptable for a CRC calculation unit for example. -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] String message methods and the self parameter

2018-01-06 Thread Ewald
t are the exact criteria: the parameter name, the parameter type, ...? 3. Can anybody explain what the part "The result of this is that it is possible to pass Self as a parameter to such a method." entails? How can it be passed with DispatchStr? 4. Can somebody give an example on h

Re: [fpc-pascal] String message methods and the self parameter

2018-01-07 Thread Ewald
e this feature was present, probably while the syntax was still "data: pointer" instead of "var data"? Anyway, I'll file a bug against the documentation in a couple of days or so. -- Ewald ___ fpc-pascal maillist

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-03 Thread Ewald
no problem with the GUI being written for a large part in a different language, have a look at Qt (possible with Qt4pas, if you insist on using pascal for the GUI). Anyway, enough on the toolkits out there, a google search will quickly yield you a lot more than I can mention in this mail :-) -- Ew

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-04 Thread Ewald
ileNameA = ^TOpenFileNameA; Function GetSaveFileNameA(arg: POpenFileNameA): windows.bool; stdcall; external 'comdlg32' name 'GetSaveFileNameA'; === code end === -- Ewald ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lis

[fpc-pascal] Initialize

2006-06-21 Thread Ewald Horn
e somewhere I'm not looking for the information ? Kind regards Ewald Horn South Africa ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Initialize

2006-06-21 Thread Ewald Horn
ascal programming to this list. Regards Ewald Horn ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Resetting the read only attribute

2006-08-01 Thread Ewald Horn
Hi. You could use FileSetAttr('filename', faArchive) method to set the attributes to archive and remove the read only flag. Remember to include SYSUTILS if you have not already done so. Regards Ewald ___ fpc-pascal maillist -

Re: [fpc-pascal] presenting fpunit test results

2006-09-07 Thread Ewald Horn
Hi Vincent, most of what I do is programs that output HTML results. I'm sure I can be of some assistance to you. Can you zip and send the unit test results to me so I can make you a small sample of what I have in mind ? Kind regards Ewald Horn Web: www.nofuss.

Re: [fpc-pascal]Book....

2006-09-13 Thread Ewald Horn
Mmm, I used Pascal last in Turbo Pascal 7 days... It's surprising how much is coming back from all those years ago just by going through the FPC examples and documentation. Sure, I do find the OOP stuff a little confusing at times, but keep at it, Pascal still rocks!

Re: [fpc-pascal] Set format

2006-11-14 Thread Ewald Horn
Hi, is it possible to keep a legacy reader in place ? That way it'll be easy to read old data and convert it to the new format and have little impact on historic data. If you happen to work on a big endian machine you could then do a once-off conversion. Kind regards Ewald

<    1   2